summaryrefslogtreecommitdiffstats
path: root/testsuite/semok
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-05-08 19:30:42 -0700
committerJosh Stone <jistone@redhat.com>2009-05-08 19:34:58 -0700
commit946e1a48eb5b92dcf17a064b62157124da661869 (patch)
tree3a57fe74b48b32f668ab456618883ac0b6f19cbf /testsuite/semok
parent56212da92dae36e5870ac6149c89d967fcab10f9 (diff)
downloadsystemtap-steved-946e1a48eb5b92dcf17a064b62157124da661869.tar.gz
systemtap-steved-946e1a48eb5b92dcf17a064b62157124da661869.tar.xz
systemtap-steved-946e1a48eb5b92dcf17a064b62157124da661869.zip
Allow @cast failures to get optimized away
We have the saved_conversion_error field, but I wasn't using it. Now @cast errors are saved in that field, so they're only seen if the optimizer doesn't remove the @cast.
Diffstat (limited to 'testsuite/semok')
-rwxr-xr-xtestsuite/semok/cast.stp6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/semok/cast.stp b/testsuite/semok/cast.stp
index 769335f2..14401886 100755
--- a/testsuite/semok/cast.stp
+++ b/testsuite/semok/cast.stp
@@ -14,4 +14,10 @@ probe begin {
// check modules generated from headers
println(@cast(0, "task_struct", "kernel<linux/sched.h>")->tgid)
println(@cast(0, "timeval", "<sys/time.h>")->tv_sec)
+
+ // make sure that bogus @casts can get optimized away
+ @cast(0, "task_struct")->no_such_field
+ @cast(0, "task_struct")->parent->no_such_field
+ @cast(0, "no_such_type")->tgid
+ @cast(0, "task_struct", "no_such_module")->tgid
}