mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
touch: adapt tests to changes in parse_datetime
This commit is contained in:
@@ -684,7 +684,8 @@ fn test_touch_set_date_relative_smoke() {
|
|||||||
"2 seconds",
|
"2 seconds",
|
||||||
"2 years 1 week",
|
"2 years 1 week",
|
||||||
"2 days ago",
|
"2 days ago",
|
||||||
"2 months and 1 second",
|
"2 months 1 second",
|
||||||
|
"a",
|
||||||
];
|
];
|
||||||
for time in times {
|
for time in times {
|
||||||
let (at, mut ucmd) = at_and_ucmd!();
|
let (at, mut ucmd) = at_and_ucmd!();
|
||||||
@@ -694,11 +695,6 @@ fn test_touch_set_date_relative_smoke() {
|
|||||||
.no_stderr()
|
.no_stderr()
|
||||||
.no_stdout();
|
.no_stdout();
|
||||||
}
|
}
|
||||||
let (at, mut ucmd) = at_and_ucmd!();
|
|
||||||
at.touch("f");
|
|
||||||
ucmd.args(&["-d", "a", "f"])
|
|
||||||
.fails()
|
|
||||||
.stderr_contains("touch: Unable to parse date");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user