summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.printf/mixed_out.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.printf/mixed_out.stp')
-rw-r--r--testsuite/systemtap.printf/mixed_out.stp20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/mixed_out.stp b/testsuite/systemtap.printf/mixed_out.stp
new file mode 100644
index 00000000..64cd16ef
--- /dev/null
+++ b/testsuite/systemtap.printf/mixed_out.stp
@@ -0,0 +1,20 @@
+# output "large_output" pattern using printf, print, and print_char
+
+# This should detect any problems in the mixing IO functions,
+# buffers or transport.
+
+probe begin
+{
+ for (j = 0; j < 3000; j++) {
+ print("ABCD")
+ printf("EFGHIJKLM")
+ print("N")
+ printf("O")
+ print("PQRSTUVWXYZ")
+ for (i = 0x61; i <= 0x7a; i++)
+ print_char(i)
+ printf("\n");
+ }
+
+ exit()
+}