summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-05-27 17:40:00 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-05-27 17:43:04 -0400
commit7938bd829dfd82c40b35d536b5913e666c1454d2 (patch)
tree2022964dca31d53b6eee3fe9588e955c410ec53e /testsuite/systemtap.maps
parent16a02dfb97fd3979d0f517a71a6aba050a3bed98 (diff)
downloadsystemtap-steved-7938bd829dfd82c40b35d536b5913e666c1454d2.tar.gz
systemtap-steved-7938bd829dfd82c40b35d536b5913e666c1454d2.tar.xz
systemtap-steved-7938bd829dfd82c40b35d536b5913e666c1454d2.zip
testsuite: use catch{close}catch{wait} to ensure child process pipe/zombie cleanup
Diffstat (limited to 'testsuite/systemtap.maps')
-rw-r--r--testsuite/systemtap.maps/absentstats.exp3
-rw-r--r--testsuite/systemtap.maps/foreach_fail.exp3
-rw-r--r--testsuite/systemtap.maps/ix_clear.exp3
-rw-r--r--testsuite/systemtap.maps/ix_clear2.exp3
-rw-r--r--testsuite/systemtap.maps/ix_clear3.exp3
-rw-r--r--testsuite/systemtap.maps/linear_0.exp3
-rw-r--r--testsuite/systemtap.maps/linear_bad.exp3
-rw-r--r--testsuite/systemtap.maps/linear_neg.exp3
-rw-r--r--testsuite/systemtap.maps/pmap_agg_overflow.exp3
9 files changed, 9 insertions, 18 deletions
diff --git a/testsuite/systemtap.maps/absentstats.exp b/testsuite/systemtap.maps/absentstats.exp
index f0e99a86..d533d2fa 100644
--- a/testsuite/systemtap.maps/absentstats.exp
+++ b/testsuite/systemtap.maps/absentstats.exp
@@ -17,7 +17,6 @@ expect {
-re {\n} { exp_continue }
eof { }
}
-catch close
-wait
+closewait
if {$ok == 2 && $ko == 13} then { pass $test } else { fail "$test ($ok $ko)" }
diff --git a/testsuite/systemtap.maps/foreach_fail.exp b/testsuite/systemtap.maps/foreach_fail.exp
index 75fcfcc4..934a58cd 100644
--- a/testsuite/systemtap.maps/foreach_fail.exp
+++ b/testsuite/systemtap.maps/foreach_fail.exp
@@ -14,5 +14,4 @@ expect {
fail "$test unexpected EOF" }
-re "semantic error:" { pass "$test correctly failed to compile" }
}
-close
-wait
+closewait
diff --git a/testsuite/systemtap.maps/ix_clear.exp b/testsuite/systemtap.maps/ix_clear.exp
index 07417898..b88e92f5 100644
--- a/testsuite/systemtap.maps/ix_clear.exp
+++ b/testsuite/systemtap.maps/ix_clear.exp
@@ -21,5 +21,4 @@ expect {
fail "$test unexpected EOF" }
-re "semantic error:" { fail "$test compilation" }
}
-catch { close }
-wait
+closewait
diff --git a/testsuite/systemtap.maps/ix_clear2.exp b/testsuite/systemtap.maps/ix_clear2.exp
index a1b68628..280650c0 100644
--- a/testsuite/systemtap.maps/ix_clear2.exp
+++ b/testsuite/systemtap.maps/ix_clear2.exp
@@ -22,5 +22,4 @@ expect {
fail "$test unexpected EOF" }
-re "semantic error:" { fail "$test compilation" }
}
-catch { close }
-wait
+closewait
diff --git a/testsuite/systemtap.maps/ix_clear3.exp b/testsuite/systemtap.maps/ix_clear3.exp
index a2935470..c0a61af1 100644
--- a/testsuite/systemtap.maps/ix_clear3.exp
+++ b/testsuite/systemtap.maps/ix_clear3.exp
@@ -20,5 +20,4 @@ expect {
fail "$test unexpected EOF" }
-re "semantic error:" { fail "$test compilation" }
}
-catch { close }
-wait
+closewait
diff --git a/testsuite/systemtap.maps/linear_0.exp b/testsuite/systemtap.maps/linear_0.exp
index 8e6952a7..efb97066 100644
--- a/testsuite/systemtap.maps/linear_0.exp
+++ b/testsuite/systemtap.maps/linear_0.exp
@@ -15,8 +15,7 @@ expect {
}
eof { }
}
-catch close
-wait
+closewait
if {$ok == 1} {
pass $test
diff --git a/testsuite/systemtap.maps/linear_bad.exp b/testsuite/systemtap.maps/linear_bad.exp
index d99fd16c..a093cb49 100644
--- a/testsuite/systemtap.maps/linear_bad.exp
+++ b/testsuite/systemtap.maps/linear_bad.exp
@@ -15,8 +15,7 @@ expect {
}
eof { }
}
-catch close
-wait
+closewait
if {$ok == 1} {
pass $test
diff --git a/testsuite/systemtap.maps/linear_neg.exp b/testsuite/systemtap.maps/linear_neg.exp
index b1640030..bad6ad21 100644
--- a/testsuite/systemtap.maps/linear_neg.exp
+++ b/testsuite/systemtap.maps/linear_neg.exp
@@ -15,8 +15,7 @@ expect {
}
eof { }
}
-catch close
-wait
+closewait
if {$ok == 1} {
pass $test
diff --git a/testsuite/systemtap.maps/pmap_agg_overflow.exp b/testsuite/systemtap.maps/pmap_agg_overflow.exp
index 99665057..edb605e7 100644
--- a/testsuite/systemtap.maps/pmap_agg_overflow.exp
+++ b/testsuite/systemtap.maps/pmap_agg_overflow.exp
@@ -25,8 +25,7 @@ expect {
eof {}
-re "semantic error:" { fail "$test compilation" }
}
-catch { close }
-wait
+closewait
if {$pass == 3} {
pass $test