diff options
author | hunt <hunt> | 2007-10-25 22:22:16 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-10-25 22:22:16 +0000 |
commit | 0379c17346059afa8dffb07eef82eaea726be6d2 (patch) | |
tree | af53c0b5618fd36d67dd928c65919379d575b135 /testsuite/systemtap.printf/print.stp | |
parent | 805006f778928f9d43419c3ad0f9e6cd0e9df9c0 (diff) | |
download | systemtap-steved-0379c17346059afa8dffb07eef82eaea726be6d2.tar.gz systemtap-steved-0379c17346059afa8dffb07eef82eaea726be6d2.tar.xz systemtap-steved-0379c17346059afa8dffb07eef82eaea726be6d2.zip |
2007-10-25 Martin Hunt <hunt@redhat.com>
* systemtap.printf/print_char.*: New test.
* systemtap.printf/print.*: New test.
* systemtap.printf/println.*: New test.
* systemtap.maps/elision.*: New tests.
* config/unix.exp: Added stap_run_exact.
* lib/stap_run_exact.exp: New. Like stap_run2 but
takes a seperate test name.
Diffstat (limited to 'testsuite/systemtap.printf/print.stp')
-rw-r--r-- | testsuite/systemtap.printf/print.stp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/print.stp b/testsuite/systemtap.printf/print.stp new file mode 100644 index 00000000..ae770935 --- /dev/null +++ b/testsuite/systemtap.printf/print.stp @@ -0,0 +1,47 @@ +# test the print function with string and integers, +# variables and constants. + +probe begin { + a = "hello" + b = " " + c = "world" + d = 777 + + # print variables + print(a) + print(b) + print(c) + print("\n") + + print(d) + print("\n") + + print(a,b,c,"\n") + print(a.b.c."\n") + + # print literals + print("foo") + print("\n") + + print("foo") + print("bar") + print("\n") + + print("foo","bar","\n") + print("foo"."bar"."\n") + + print("foo",99,"\n") + print(99, "foo","\n") + + print(777) + print("\n") + print(888,"\n") + + print(123,456,789,"\n") + + # mixed + print(a,999,"\n") + print(999,a,"\n") + + exit() +} |