From 84b49730802c1cc625b85a2bfd473f6839d4e99c Mon Sep 17 00:00:00 2001 From: Przemysław Pawełczyk Date: Thu, 11 Feb 2010 15:10:39 -0500 Subject: Add simple test for PR10257 (sprint(@hist_linear)). Test is simple, because print and sprint uses the same code for handling @hist_* and it is not intended for playing with MAXSTRINGLEN, which is required anyway for bigger histograms (the one generated here consists of only 127 characters). When PR10690 (need way to produce bigger procfs output) will be fixed, then we should add another test for both PRs with normal histogram. --- testsuite/systemtap.maps/hist_in_string.stp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 testsuite/systemtap.maps/hist_in_string.stp (limited to 'testsuite/systemtap.maps/hist_in_string.stp') diff --git a/testsuite/systemtap.maps/hist_in_string.stp b/testsuite/systemtap.maps/hist_in_string.stp new file mode 100644 index 00000000..f9d0e81a --- /dev/null +++ b/testsuite/systemtap.maps/hist_in_string.stp @@ -0,0 +1,10 @@ +global l + +probe begin +{ + for (i = 0; i < 128; i++) + l <<< 0 + + print(sprint(@hist_linear(l, 0, 0, 1))) + exit() +} -- cgit