mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
touch: adapt tests to changes in parse_datetime
This commit is contained in:
parent
7d8c58ad36
commit
7dc20bbdb0
1 changed files with 2 additions and 6 deletions
|
|
@ -684,7 +684,8 @@ fn test_touch_set_date_relative_smoke() {
|
|||
"2 seconds",
|
||||
"2 years 1 week",
|
||||
"2 days ago",
|
||||
"2 months and 1 second",
|
||||
"2 months 1 second",
|
||||
"a",
|
||||
];
|
||||
for time in times {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
|
|
@ -694,11 +695,6 @@ fn test_touch_set_date_relative_smoke() {
|
|||
.no_stderr()
|
||||
.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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue