diff options
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") +} |