]> sourceware.org Git - systemtap.git/commitdiff
Minor changes to labels.exp.
authorStan Cox <scox@redhat.com>
Mon, 9 Mar 2009 00:17:10 +0000 (20:17 -0400)
committerStan Cox <scox@redhat.com>
Mon, 9 Mar 2009 00:17:10 +0000 (20:17 -0400)
testsuite/systemtap.base/labels.exp

index 5464026831ee325cf85512ac3154e25698ad6caa..1b538dbb9051575e4f4801136883df52176c3e72 100644 (file)
@@ -85,16 +85,16 @@ spawn sh $label_shpath
 expect {
     -re {0x[0-9a-f]*} 
 }
-set ok  0
+set nomatch 0
 spawn stap -p2 -l "process\(\"$label_exepath\"\).statement($expect_out(0,string))"
 expect {
     -timeout 180
-    -re {no match} { incr ok; exp_continue }
+    -re {semantic error: no match} { incr nomatch; exp_continue }
     timeout { fail "$test (timeout)" }
     eof { }
 }
 
-if {$ok == 0} { pass "$test exe .statement" } { xfail "$test exe .statement" }
+if {$nomatch == 0} { pass "$test exe .statement" } { fail "$test exe .statement" }
 
 set ok 0
 
@@ -136,15 +136,15 @@ spawn sh $label_shpath
 expect {
     -re {0x[0-9a-f]*} 
 }
-set ok  0
+set nomatch 0
 spawn stap -p2 -l "process\(\"$label_sopath\"\).statement($expect_out(0,string))"
 expect {
     -timeout 180
-    -re {no match} { incr ok; exp_continue }
+    -re {semantic error: no match} { incr nomatch; exp_continue }
     timeout { fail "$test (timeout)" }
     eof { }
 }
 
-if {$ok == 0} { pass "$test so .statement" } { xfail "$test so .statement" }
+if {$nomatch == 0} { pass "$test so .statement" } { fail "$test so .statement" }
 
 # catch {exec rm -f $label_srcpath $label_stppath $label_exepath}
This page took 0.027548 seconds and 5 git commands to generate.