diff options
author | jistone <jistone> | 2006-01-18 03:33:14 +0000 |
---|---|---|
committer | jistone <jistone> | 2006-01-18 03:33:14 +0000 |
commit | a92fb2983e5244cd3181b54ff9ef29c2803e3ff1 (patch) | |
tree | e10b5def169c44e594ec512b27cae94b54ef670e | |
parent | ea7f4e8defbca50342a51d2f9864ec4a98de25b4 (diff) | |
download | systemtap-steved-a92fb2983e5244cd3181b54ff9ef29c2803e3ff1.tar.gz systemtap-steved-a92fb2983e5244cd3181b54ff9ef29c2803e3ff1.tar.xz systemtap-steved-a92fb2983e5244cd3181b54ff9ef29c2803e3ff1.zip |
2006-01-17 Josh Stone <joshua.i.stone@intel.com>
PR 2156
* testsuite/buildok/pmap_foreach.stp: Add test with sorting
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | testsuite/buildok/pmap_foreach.stp | 9 |
2 files changed, 13 insertions, 1 deletions
@@ -1,6 +1,11 @@ 2006-01-17 Josh Stone <joshua.i.stone@intel.com> PR 2156 + * testsuite/buildok/pmap_foreach.stp: Add test with sorting + +2006-01-17 Josh Stone <joshua.i.stone@intel.com> + + PR 2156 * translate.cxx (c_unparser::visit_foreach_loop): Check the return value of _stp_pmap_agg() for NULL. diff --git a/testsuite/buildok/pmap_foreach.stp b/testsuite/buildok/pmap_foreach.stp index 14912e16..5a52c9d6 100755 --- a/testsuite/buildok/pmap_foreach.stp +++ b/testsuite/buildok/pmap_foreach.stp @@ -26,5 +26,12 @@ probe end { printf("first bucket of hist_log of foo[%d] = %d\n", i, @hist_log(foo[i])[0]) print(@hist_log(foo[i])) - } + } + + foreach (i+ in foo) { + printf("count of foo[%d] = %d\n", i, @count(foo[i])) + printf("first bucket of hist_log of foo[%d] = %d\n", + i, @hist_log(foo[i])[0]) + print(@hist_log(foo[i])) + } } |