Skip to content

Commit

Permalink
touch: re-enable test, fix typo in expected error messge
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWiederhake committed Feb 22, 2024
1 parent e50eb19 commit 27030e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/by-util/test_touch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -846,13 +846,11 @@ fn test_touch_dash() {
}

#[test]
// Chrono panics for now
#[ignore]
fn test_touch_invalid_date_format() {
let (_at, mut ucmd) = at_and_ucmd!();
let file = "test_touch_invalid_date_format";

ucmd.args(&["-m", "-t", "+1000000000000 years", file])
.fails()
.stderr_contains("touch: invalid date format +1000000000000 years");
.stderr_contains("touch: invalid date format '+1000000000000 years'");
}

0 comments on commit 27030e9

Please sign in to comment.