mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
parent
ca3037de87
commit
4fcf912c85
1 changed files with 3 additions and 7 deletions
|
@ -43,9 +43,6 @@ fn test_reference() {
|
||||||
let mut file = at.make_file(FILE2);
|
let mut file = at.make_file(FILE2);
|
||||||
|
|
||||||
// manpage: "A FILE argument that does not exist is created."
|
// 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.ucmd().arg("-s").arg("+5KB").arg(FILE1).succeeds();
|
||||||
|
|
||||||
scene
|
scene
|
||||||
|
@ -240,10 +237,9 @@ fn test_reference_with_size_file_not_found() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_truncate_bytes_size() {
|
fn test_truncate_bytes_size() {
|
||||||
// TODO: this should succeed without error, uncomment when '--no-create' is fixed
|
new_ucmd!()
|
||||||
// new_ucmd!()
|
.args(&["--no-create", "--size", "K", "file"])
|
||||||
// .args(&["--no-create", "--size", "K", "file"])
|
.succeeds();
|
||||||
// .succeeds();
|
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
.args(&["--size", "1024R", "file"])
|
.args(&["--size", "1024R", "file"])
|
||||||
.fails()
|
.fails()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue