Skip to content

Commit e779313

Browse files
committed
rustpkg: invoke touch with a portable set of args
1 parent 4dbef01 commit e779313

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustpkg/tests.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,9 @@ fn touch_source_file(workspace: &Path, pkgid: &PkgId) {
516516
// should be able to do this w/o a process
517517
// FIXME (#9639): This needs to handle non-utf8 paths
518518
// n.b. Bumps time up by 2 seconds to get around granularity issues
519-
if run::process_output("touch", [~"-A", ~"02", p.as_str().unwrap().to_owned()]).status != 0 {
519+
if run::process_output("touch", [~"--date",
520+
~"+2 seconds",
521+
p.as_str().unwrap().to_owned()]).status != 0 {
520522
let _ = cond.raise((pkg_src_dir.clone(), ~"Bad path"));
521523
}
522524
}

0 commit comments

Comments
 (0)