From ee7369e533d6965f1661b9c5bc174a843b335c6e Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 10 Apr 2007 14:41:39 +0000 Subject: 2007-04-10 Martin Hunt * 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. --- testsuite/systemtap.printf/mixed_out.exp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 testsuite/systemtap.printf/mixed_out.exp (limited to 'testsuite/systemtap.printf/mixed_out.exp') diff --git a/testsuite/systemtap.printf/mixed_out.exp b/testsuite/systemtap.printf/mixed_out.exp new file mode 100644 index 00000000..6967f815 --- /dev/null +++ b/testsuite/systemtap.printf/mixed_out.exp @@ -0,0 +1,29 @@ +set test "mixed_out" +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 -DMAXACTION=100000 -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} + -- cgit