summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.printf/memory1.stp
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-04-27 11:56:15 -0400
committerDave Brolley <brolley@redhat.com>2009-04-27 11:56:15 -0400
commite84f20287ae21b31c3505dfd0a81176687ad1ec5 (patch)
tree956005556406fc93e4444ee0d425aafed8e241d0 /testsuite/systemtap.printf/memory1.stp
parentfb6d28283bd7ea63364a008d32c53687a694642f (diff)
parent097e4a5b397b9e826453e01caa1f8169886128c5 (diff)
downloadsystemtap-steved-e84f20287ae21b31c3505dfd0a81176687ad1ec5.tar.gz
systemtap-steved-e84f20287ae21b31c3505dfd0a81176687ad1ec5.tar.xz
systemtap-steved-e84f20287ae21b31c3505dfd0a81176687ad1ec5.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Conflicts: configure testsuite/configure
Diffstat (limited to 'testsuite/systemtap.printf/memory1.stp')
-rw-r--r--testsuite/systemtap.printf/memory1.stp14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/systemtap.printf/memory1.stp b/testsuite/systemtap.printf/memory1.stp
index f9cbf60b..15aa565b 100644
--- a/testsuite/systemtap.printf/memory1.stp
+++ b/testsuite/systemtap.printf/memory1.stp
@@ -113,6 +113,20 @@ probe syscall.open {
success = 0;
}
+ expected_16_actual = sprintf (" %02x%02x%02x%02x%02x%02x",
+ stringat(filename, 0),
+ stringat(filename, 1),
+ stringat(filename, 2),
+ stringat(filename, 3),
+ stringat(filename, 4),
+ stringat(filename, 5));
+ testName = "%M dynamic width larger than dynamic precision";
+ result = sprintf ("%*.*M", 14, 6, $filename);
+ if (result != expected_16_actual) {
+ printf ("Test %s failed\n", testName);
+ success = 0;
+ }
+
if (success)
print ("Test passed\n");