summaryrefslogtreecommitdiffstats
path: root/test/scons-time/run/option/verbose.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/scons-time/run/option/verbose.py')
-rw-r--r--test/scons-time/run/option/verbose.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/scons-time/run/option/verbose.py b/test/scons-time/run/option/verbose.py
index cdf5b5a..fb95dab 100644
--- a/test/scons-time/run/option/verbose.py
+++ b/test/scons-time/run/option/verbose.py
@@ -40,7 +40,7 @@ test.diff_function = TestSCons_time.diff_re
def tempdir_re(*args):
- import os
+ import os,sys
import os.path
import string
import tempfile
@@ -50,6 +50,9 @@ def tempdir_re(*args):
x = apply(os.path.join, args)
x = re.escape(x)
x = string.replace(x, 'time\\-', 'time\\-[^%s]*' % sep)
+ if sys.platform=='darwin':
+ # OSX has /tmp in /private/tmp.
+ x = '(/private)?' + x
return x
scons_py = re.escape(test.workpath('src', 'script', 'scons.py'))