diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2009-09-16 16:08:38 -0400 |
---|---|---|
committer | Masami Hiramatsu <mhiramat@redhat.com> | 2009-09-16 16:08:38 -0400 |
commit | 0ec1af8d6f51d29ee6191a0160e934bef1dd94d3 (patch) | |
tree | 0b3853ab094671d4c39ac2922ed1c39ac8b0af2b /testsuite/systemtap.base/flightrec1.exp | |
parent | c3a32b01d74946d8ae4d79534aeb194f1c66c72a (diff) | |
download | systemtap-steved-0ec1af8d6f51d29ee6191a0160e934bef1dd94d3.tar.gz systemtap-steved-0ec1af8d6f51d29ee6191a0160e934bef1dd94d3.tar.xz systemtap-steved-0ec1af8d6f51d29ee6191a0160e934bef1dd94d3.zip |
Add signal based file switching testcase
* testsuite/systemtap.base/flightrec1.exp: Add signal file switching testcase.
* testsuite/systemtap.base/flightrec4.exp: New test for signal file switching
with file number limits.
* testsuite/systemtap.base/flightrec5.exp: New test for signal file switching
with file number limits on bulk mode.
Diffstat (limited to 'testsuite/systemtap.base/flightrec1.exp')
-rw-r--r-- | testsuite/systemtap.base/flightrec1.exp | 12 |
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)" +} |