1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

truncate: remove two-year-old file-creation todos

In commit 129cfe12b8
This commit is contained in:
Ben Wiederhake 2024-03-03 13:06:14 +01:00
parent ca3037de87
commit 4fcf912c85

View file

@ -43,9 +43,6 @@ fn test_reference() {
let mut file = at.make_file(FILE2);
// manpage: "A FILE argument that does not exist is created."
// TODO: 'truncate' does not create the file in this case,
// but should because '--no-create' wasn't specified.
at.touch(FILE1); // TODO: remove this when 'no-create' is fixed
scene.ucmd().arg("-s").arg("+5KB").arg(FILE1).succeeds();
scene
@ -240,10 +237,9 @@ fn test_reference_with_size_file_not_found() {
#[test]
fn test_truncate_bytes_size() {
// TODO: this should succeed without error, uncomment when '--no-create' is fixed
// new_ucmd!()
// .args(&["--no-create", "--size", "K", "file"])
// .succeeds();
new_ucmd!()
.args(&["--no-create", "--size", "K", "file"])
.succeeds();
new_ucmd!()
.args(&["--size", "1024R", "file"])
.fails()