summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-07-13 11:23:32 -0400
committerDave Brolley <brolley@redhat.com>2009-07-13 11:23:32 -0400
commitee03b2aaf05b2ffed68f2023c8ea61a6ebb5d0ee (patch)
tree2654459de4f19ade39c40f59d2bc4f368c24764f /testsuite/systemtap.base
parent5739030625d3f1697c264e3d8f04e932d1e0773d (diff)
parent4a4edc21a14792a4cc240b601912734027945ae8 (diff)
downloadsystemtap-steved-ee03b2aaf05b2ffed68f2023c8ea61a6ebb5d0ee.tar.gz
systemtap-steved-ee03b2aaf05b2ffed68f2023c8ea61a6ebb5d0ee.tar.xz
systemtap-steved-ee03b2aaf05b2ffed68f2023c8ea61a6ebb5d0ee.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Conflicts: main.cxx
Diffstat (limited to 'testsuite/systemtap.base')
-rw-r--r--testsuite/systemtap.base/cache.exp20
1 files changed, 17 insertions, 3 deletions
diff --git a/testsuite/systemtap.base/cache.exp b/testsuite/systemtap.base/cache.exp
index b10a4f28..e70f3334 100644
--- a/testsuite/systemtap.base/cache.exp
+++ b/testsuite/systemtap.base/cache.exp
@@ -99,9 +99,23 @@ stap_compile MERGE1 [F_UNCACHED_COMPILE] $basic_script1 -b -M
stap_compile MERGE2 [F_CACHED_COMPILE] $basic_script1 -b -M
# Using '-t' (benchmark timing) should change the hash
-# These two tests will fail until PR3523 is fixed.
-#stap_compile TIMING1 [F_UNCACHED_COMPILE] $basic_script1 -t
-#stap_compile TIMING2 [F_CACHED_COMPILE] $basic_script1 -t
+stap_compile TIMING1 [F_UNCACHED_COMPILE] $basic_script1 -t
+stap_compile TIMING2 [F_CACHED_COMPILE] $basic_script1 -t
+
+# Using '-O[0123s]' (C compile optimizations) should change the hash
+# unless they are the same
+stap_compile OPTO [F_UNCACHED_COMPILE] $basic_script1 -O
+# -O0 is the default, so will have been cached by BASIC1
+stap_compile OPTZERO [F_CACHED_COMPILE] $basic_script1 -O0
+# -O is an alias for -O1, so already cached
+stap_compile OPTONE [F_CACHED_COMPILE] $basic_script1 -O1
+stap_compile OPTTWO [F_UNCACHED_COMPILE] $basic_script1 -O2
+stap_compile OPTTHREE [F_UNCACHED_COMPILE] $basic_script1 -O3
+stap_compile OPTSMALL [F_UNCACHED_COMPILE] $basic_script1 -Os
+# Bad -O argument should be rejected
+stap_compile OPTBAD [F_UNCACHED_NO_COMPILE] $basic_script1 -OX
+
+stap_compile TIMING2 [F_CACHED_COMPILE] $basic_script1 -t
# Changing the runtime directory should change the hash
set new_runtime [exec pwd]/.cache_test_runtime