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/println.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/println.stp')
-rw-r--r-- | testsuite/systemtap.printf/println.stp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/println.stp b/testsuite/systemtap.printf/println.stp new file mode 100644 index 00000000..0b02f0ac --- /dev/null +++ b/testsuite/systemtap.printf/println.stp @@ -0,0 +1,37 @@ +# test the println function with string and integers, +# variables and constants. + +probe begin { + a = "hello" + b = " " + c = "world" + d = 777 + + # println variables + println(a) + println(b) + println(c) + + println(d) + + println(a,b,c) + println(a.b.c) + + # println literals + println("foo") + + println("foo","bar") + println("foo"."bar") + + println(777) + println("foo",99) + println(99, "foo") + + println(123,456,789) + + # mixed + println(a,999) + println(999,a) + + exit() +} |