From f9e62cd9ca858f8fdd3a46f4b9e42b47092fc423 Mon Sep 17 00:00:00 2001 From: Elliott Baron Date: Mon, 20 Oct 2008 10:42:28 -0400 Subject: PR6851: Added support for %c printf conversion specifier --- testsuite/systemtap.printf/char1.exp | 4 ++++ testsuite/systemtap.printf/char1.stp | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 testsuite/systemtap.printf/char1.exp create mode 100644 testsuite/systemtap.printf/char1.stp (limited to 'testsuite') 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 -- cgit