]> git.lizzy.rs Git - rust.git/commitdiff
rustpkg: invoke touch with a portable set of args
authorTim Chevalier <chevalier@alum.wellesley.edu>
Fri, 18 Oct 2013 22:55:28 +0000 (15:55 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Sat, 19 Oct 2013 01:36:27 +0000 (18:36 -0700)
src/librustpkg/tests.rs

index 8722a638c456d3d3f3f2f1388a3c7ee5bc7de3f9..c38e0d66b14dabead1c845fdfc8702bf20308329 100644 (file)
@@ -516,7 +516,9 @@ fn touch_source_file(workspace: &Path, pkgid: &PkgId) {
             // should be able to do this w/o a process
             // FIXME (#9639): This needs to handle non-utf8 paths
             // n.b. Bumps time up by 2 seconds to get around granularity issues
-            if run::process_output("touch", [~"-A", ~"02", p.as_str().unwrap().to_owned()]).status != 0 {
+            if run::process_output("touch", [~"--date",
+                                             ~"+2 seconds",
+                                             p.as_str().unwrap().to_owned()]).status != 0 {
                 let _ = cond.raise((pkg_src_dir.clone(), ~"Bad path"));
             }
         }