about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-10-18 15:55:28 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-10-18 18:36:27 -0700
commite779313b0786b5b9d852729005d1552b0b120d61 (patch)
tree835bcea20936c00f75d79263f5171b76f13db6a1
parent4dbef017dd2bdc34a6ddfb0914244946c01f9d97 (diff)
downloadrust-e779313b0786b5b9d852729005d1552b0b120d61.tar.gz
rust-e779313b0786b5b9d852729005d1552b0b120d61.zip
rustpkg: invoke touch with a portable set of args
-rw-r--r--src/librustpkg/tests.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustpkg/tests.rs b/src/librustpkg/tests.rs
index 8722a638c45..c38e0d66b14 100644
--- a/src/librustpkg/tests.rs
+++ b/src/librustpkg/tests.rs
@@ -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"));
             }
         }