From 4fcf912c85e7b519dc54118044d5fb405f353d18 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sun, 3 Mar 2024 13:06:14 +0100 Subject: [PATCH] truncate: remove two-year-old file-creation todos In commit 129cfe12b826377a5eeb24577c492bcb0da02033 --- tests/by-util/test_truncate.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/by-util/test_truncate.rs b/tests/by-util/test_truncate.rs index 81b87ed2e..f7122902e 100644 --- a/tests/by-util/test_truncate.rs +++ b/tests/by-util/test_truncate.rs @@ -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()