diff options
author | Steven Knight <knight@baldmt.com> | 2009-08-01 15:05:35 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-08-01 15:05:35 (GMT) |
commit | 0669ba2c8d0304cd91edae59418c16c7d94b20f3 (patch) | |
tree | 66e3781d3c91f411ce0fc830113927a0c45f3ff4 | |
parent | e6bb48f4ebf823a4e43630f403ef2c4edaadfd5d (diff) | |
download | SCons-0669ba2c8d0304cd91edae59418c16c7d94b20f3.zip SCons-0669ba2c8d0304cd91edae59418c16c7d94b20f3.tar.gz SCons-0669ba2c8d0304cd91edae59418c16c7d94b20f3.tar.bz2 |
Use regular expression matching to allow our "do nothing script"
to execute in up to 0.002 seconds.
-rw-r--r-- | test/scons-time/func/format-gnuplot.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/scons-time/func/format-gnuplot.py b/test/scons-time/func/format-gnuplot.py index 254a754..711d82b 100644 --- a/test/scons-time/func/format-gnuplot.py +++ b/test/scons-time/func/format-gnuplot.py @@ -30,7 +30,8 @@ Verify the func --format=gnuplot option. import TestSCons_time -test = TestSCons_time.TestSCons_time() +test = TestSCons_time.TestSCons_time(match = TestSCons_time.match_re, + diff = TestSCons_time.diff_re) try: import pstats @@ -50,22 +51,21 @@ test.profile_data('foo-001-0.prof', 'prof.py', '_main', content) test.profile_data('foo-001-1.prof', 'prof.py', '_main', content) test.profile_data('foo-001-2.prof', 'prof.py', '_main', content) -expect_notitle = """\ -set key bottom left +expect_notitle = r"""set key bottom left plot '-' title "Startup" with lines lt 1, \\ '-' title "Full build" with lines lt 2, \\ '-' title "Up-to-date build" with lines lt 3 # Startup -0 0.000 -1 0.000 +0 0.00[012] +1 0.00[012] e # Full build -0 0.000 -1 0.000 +0 0.00[012] +1 0.00[012] e # Up-to-date build -0 0.000 -1 0.000 +0 0.00[012] +1 0.00[012] e """ |