diff options
author | hunt <hunt> | 2007-04-10 14:41:39 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-04-10 14:41:39 +0000 |
commit | ee7369e533d6965f1661b9c5bc174a843b335c6e (patch) | |
tree | f9ede7a6904c883c126cd8fb5688dd5f4083b5b1 /testsuite/systemtap.printf/out2.exp | |
parent | 3d1f0c8fa10174815920ed3568bd816bd488f62f (diff) | |
download | systemtap-steved-ee7369e533d6965f1661b9c5bc174a843b335c6e.tar.gz systemtap-steved-ee7369e533d6965f1661b9c5bc174a843b335c6e.tar.xz systemtap-steved-ee7369e533d6965f1661b9c5bc174a843b335c6e.zip |
2007-04-10 Martin Hunt <hunt@redhat.com>
* systemtap.printf/out*: New output tests to stress output
buffering and transport.
* systemtap.printf/mixed*: More output tests mixing print,
printf, and print_char.
* systemtap.printf/end*: Test that output from end probes
is all sent.
Diffstat (limited to 'testsuite/systemtap.printf/out2.exp')
-rw-r--r-- | testsuite/systemtap.printf/out2.exp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/out2.exp b/testsuite/systemtap.printf/out2.exp new file mode 100644 index 00000000..36d5d443 --- /dev/null +++ b/testsuite/systemtap.printf/out2.exp @@ -0,0 +1,29 @@ +set test "out2" +set tpath "$srcdir/$subdir/$test.stp" +set TEST_NAME "$subdir/$test" + +if {![installtest_p]} { untested $TEST_NAME; return } + +if {[catch {exec mktemp -t staptestXXXXX} tmpfile]} { + puts stderr "Failed to create temporary file: $tmpfile" + untested $TEST_NAME + return +} + +if {[catch {exec stap -o $tmpfile $tpath} res]} { + untested $TEST_NAME + puts "$res" + catch {exec rm -f $tmpfile} + return +} + +if {[catch {exec cmp $tmpfile $srcdir/$subdir/large_output} res]} { + fail "$TEST_NAME failed" + puts "$res" + catch {exec rm -f $tmpfile} + return +} + +pass "$TEST_NAME passed" +catch {exec rm -f $tmpfile} + |