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/end1.stp | |
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/end1.stp')
-rw-r--r-- | testsuite/systemtap.printf/end1.stp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/end1.stp b/testsuite/systemtap.printf/end1.stp new file mode 100644 index 00000000..d2ab09f7 --- /dev/null +++ b/testsuite/systemtap.printf/end1.stp @@ -0,0 +1,18 @@ +# output "large_output" pattern using printf. + +# This should detect any problems in the printf code, output +# buffers or transport. + +# This is the same as "out1.stp" except output is at the end probe. +# We need this test to be sure all output from end probes gets written +# before terminating. + +probe begin { + exit() +} + +probe end +{ + for (j = 0; j < 3000; j++) + printf("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\n") +} |