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

chmod: make error message clearer

This commit is contained in:
shutefan 2017-11-29 23:01:56 +01:00
parent bf5151d4a5
commit 957d489604

View file

@ -31,7 +31,7 @@ fn run_single_test(test: &TestCase, at: AtPath, mut ucmd: UCommand) {
mkfile(&at.plus_as_string(TEST_FILE), test.before); mkfile(&at.plus_as_string(TEST_FILE), test.before);
let perms = at.metadata(TEST_FILE).permissions().mode(); let perms = at.metadata(TEST_FILE).permissions().mode();
if perms != test.before { if perms != test.before {
panic!(format!("{}: expected: {:o} got: {:o}", "setting permissions failed", test.after, perms)); panic!(format!("{}: expected: {:o} got: {:o}", "setting permissions on test files before actual test run failed", test.after, perms));
} }
for arg in &test.args { for arg in &test.args {