]> sourceware.org Git - systemtap.git/commitdiff
context.exp test improvements.
authorDavid Smith <dsmith@redhat.com>
Fri, 30 Oct 2009 15:03:52 +0000 (10:03 -0500)
committerDavid Smith <dsmith@redhat.com>
Fri, 30 Oct 2009 15:03:52 +0000 (10:03 -0500)
* testsuite/systemtap.context/args.tcl: Increased timeout.  If tests do
  timeout, fail (instead of silently failing).
* testsuite/systemtap.context/num_args.tcl: Ditto.
* testsuite/systemtap.context/backtrace.tcl: Increase timeout.
* testsuite/systemtap.context/pid.tcl: Ditto.

testsuite/systemtap.context/args.tcl
testsuite/systemtap.context/backtrace.tcl
testsuite/systemtap.context/num_args.tcl
testsuite/systemtap.context/pid.tcl

index fb8aecb473469a4c59852373abbc77b05992a426..c5aed203f187cfd4f013717bdff5d8bdf365c6ed 100644 (file)
@@ -1,6 +1,6 @@
 spawn stap $srcdir/$subdir/args.stp
 expect {
-    -timeout 60
+    -timeout 120
     "READY" {
        exec echo 1 > /proc/stap_test_cmd
        expect {
@@ -51,6 +51,7 @@ expect {
            timeout {fail "string function arguments"}
        }
     }
+    timeout {fail "all args tests - timeout"}
     eof {fail "function arguments: unexpected timeout"}
 }
 exec kill -INT -[exp_pid]
index 5e7b15361a5dd49cec817b87a25484ed60af865f..d436ab5c93e8852c60690594d0b17a5ac345ae26 100644 (file)
@@ -9,7 +9,7 @@ set m6 0
 spawn stap $srcdir/$subdir/backtrace.stp
 #exp_internal 1
 expect {
-    -timeout 60
+    -timeout 120
     "Systemtap probe: begin\r\n" {
        pass "backtrace of begin probe"
        exec echo 0 > /proc/stap_test_cmd
index 62ac8dd37a9be3b7432bbb4059bc09713175034e..d677f8491b56b0a364a49a412bf76e698e1af103 100644 (file)
@@ -3,7 +3,7 @@ foreach arglist $arglists {
 set tag [concat numeric $arglist]
 eval spawn stap $arglist $srcdir/$subdir/num_args.stp
 expect {
-    -timeout 60
+    -timeout 120
     "READY" {
        exec echo 1 > /proc/stap_test_cmd
        expect {
@@ -57,6 +57,7 @@ expect {
     -re "semantic error:" {
        fail "function arguments -- $tag: compilation failed"
     }
+    timeout {fail "all function arguments tests - timeout"}
     eof {fail "function arguments -- $tag: unexpected timeout"}
 }
 exec kill -INT -[exp_pid]
index 70a87345b8168de36a125546c40394b2cd31e256..350a05b267fee1e88773a54e9d3f89a87150ac9c 100644 (file)
@@ -2,7 +2,7 @@ set tests [list execname pexecname pid ppid tid uid euid gid egid]
 spawn stap $srcdir/$subdir/pid.stp
 #exp_internal 1
 expect {
-    -timeout 60
+    -timeout 120
     "READY" {
        set pid [exec echo 1 > /proc/stap_test_cmd &]
        set ppid {[0-9]*}
This page took 0.030667 seconds and 5 git commands to generate.