summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/flightrec1.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/flightrec1.exp')
-rw-r--r--testsuite/systemtap.base/flightrec1.exp12
1 files changed, 11 insertions, 1 deletions
diff --git a/testsuite/systemtap.base/flightrec1.exp b/testsuite/systemtap.base/flightrec1.exp
index c32a77f2..73b6221e 100644
--- a/testsuite/systemtap.base/flightrec1.exp
+++ b/testsuite/systemtap.base/flightrec1.exp
@@ -30,7 +30,8 @@ expect {
}
wait
-exec kill -TERM $pid
+# switch file
+exec kill -USR2 $pid
# check output file
if {[catch {exec rm $test.out}]} {
@@ -40,4 +41,13 @@ if {[catch {exec rm $test.out}]} {
pass "$test (output file)"
}
+exec kill -TERM $pid
+
+# check switched output file
+if {[catch {exec rm $test.out.1}]} {
+ fail "$test (failed to switch output file)"
+ return -1
+} else {
+ pass "$test (switch output file)"
+}