summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Baron <ebaron@toriamos.yyz.redhat.com>2008-10-20 10:42:28 -0400
committerElliott Baron <ebaron@toriamos.yyz.redhat.com>2008-10-20 10:42:28 -0400
commitf9e62cd9ca858f8fdd3a46f4b9e42b47092fc423 (patch)
tree5da9392d54d0c8aeacd73124d7364ae2e87069a8
parentfffd8e13b84c121be4657a91042d050094fbfb99 (diff)
downloadsystemtap-steved-f9e62cd9ca858f8fdd3a46f4b9e42b47092fc423.tar.gz
systemtap-steved-f9e62cd9ca858f8fdd3a46f4b9e42b47092fc423.tar.xz
systemtap-steved-f9e62cd9ca858f8fdd3a46f4b9e42b47092fc423.zip
PR6851: Added support for %c printf conversion specifier
-rw-r--r--testsuite/systemtap.printf/char1.exp4
-rw-r--r--testsuite/systemtap.printf/char1.stp9
2 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/char1.exp b/testsuite/systemtap.printf/char1.exp
new file mode 100644
index 00000000..0e9232e9
--- /dev/null
+++ b/testsuite/systemtap.printf/char1.exp
@@ -0,0 +1,4 @@
+set test "char1"
+set ::result_string {stap
+}
+stap_run2 $srcdir/$subdir/$test.stp \ No newline at end of file
diff --git a/testsuite/systemtap.printf/char1.stp b/testsuite/systemtap.printf/char1.stp
new file mode 100644
index 00000000..d7db1288
--- /dev/null
+++ b/testsuite/systemtap.printf/char1.stp
@@ -0,0 +1,9 @@
+probe begin
+{
+ printf("%c", 115)
+ printf("%c", 116)
+ printf("%c", 97)
+ printf("%c", 112)
+ print("\n")
+ exit()
+} \ No newline at end of file