diff options
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/buildok/twentyfour.stp | 14 | ||||
-rwxr-xr-x | testsuite/parseok/unparser.stp | 8 |
2 files changed, 20 insertions, 2 deletions
diff --git a/testsuite/buildok/twentyfour.stp b/testsuite/buildok/twentyfour.stp new file mode 100755 index 00000000..a889fe56 --- /dev/null +++ b/testsuite/buildok/twentyfour.stp @@ -0,0 +1,14 @@ +#! stap -gp4 + +# If the optimizer is working, this function will get elided, +# and thus will compile successfully. + +function pure() %{ /* pure */ +#error "should have been elided" +%} + + +probe begin +{ + pure () +} diff --git a/testsuite/parseok/unparser.stp b/testsuite/parseok/unparser.stp index 710c4636..b5deb146 100755 --- a/testsuite/parseok/unparser.stp +++ b/testsuite/parseok/unparser.stp @@ -14,8 +14,12 @@ do do if head -1 $file | grep -q stap then - echo $file - ./stap -p1 $file | ./stap -p1 - > /dev/null + if head -1 $file | fgrep -q -- g # guru mode + then guru=-g + else guru= + fi + echo $file $guru + ./stap $guru -p1 $file | ./stap $guru -p1 - > /dev/null fi done done |