Skip to content

Commit 7dc20bb

Browse files
committed
touch: adapt tests to changes in parse_datetime
1 parent 7d8c58a commit 7dc20bb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/by-util/test_touch.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,8 @@ fn test_touch_set_date_relative_smoke() {
684684
"2 seconds",
685685
"2 years 1 week",
686686
"2 days ago",
687-
"2 months and 1 second",
687+
"2 months 1 second",
688+
"a",
688689
];
689690
for time in times {
690691
let (at, mut ucmd) = at_and_ucmd!();
@@ -694,11 +695,6 @@ fn test_touch_set_date_relative_smoke() {
694695
.no_stderr()
695696
.no_stdout();
696697
}
697-
let (at, mut ucmd) = at_and_ucmd!();
698-
at.touch("f");
699-
ucmd.args(&["-d", "a", "f"])
700-
.fails()
701-
.stderr_contains("touch: Unable to parse date");
702698
}
703699

704700
#[test]

0 commit comments

Comments
 (0)