Skip to content

Commit 4c6ba43

Browse files
committed
Fix tests
1 parent 51b2211 commit 4c6ba43

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

tests/by-util/test_stat.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -361,17 +361,13 @@ fn test_quoting_style_locale() {
361361
ts.ucmd()
362362
.env("QUOTING_STYLE", "locale")
363363
.args(&["-c", "%N", "'"])
364-
.run()
365-
.no_stderr()
366-
.stdout_is("'\\''\n")
367-
.succeeded();
364+
.succeeds()
365+
.stdout_only("'\\''\n");
368366

369367
ts.ucmd()
370368
.args(&["-c", "%N", "'"])
371-
.run()
372-
.no_stderr()
373-
.stdout_is("\"'\"\n")
374-
.succeeded();
369+
.succeeds()
370+
.stdout_only("\"'\"\n");
375371
}
376372

377373
#[test]
@@ -395,11 +391,11 @@ fn test_printf_octal_2() {
395391
}
396392

397393
#[test]
398-
fn test_printf_hex_3() {
394+
fn test_printf_incomplete_hex() {
399395
let ts = TestScenario::new(util_name!());
400396
ts.ucmd()
401397
.args(&["--printf=\\x", "."])
402-
.run()
398+
.succeeds()
403399
.stderr_contains("warning: incomplete hex escape");
404400
}
405401

0 commit comments

Comments
 (0)