diff options
author | hunt <hunt> | 2007-01-22 16:52:44 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-01-22 16:52:44 +0000 |
commit | b4b406f3e27459872deac9f9a2e6523cd5718f5c (patch) | |
tree | c4f409df1ed04def9e5c7b3fa4c703d8464bd1ae /testsuite/systemtap.maps/exists.exp | |
parent | cc11b5bdf0b0bdc4c4eaf79251b52fbeba41a372 (diff) | |
download | systemtap-steved-b4b406f3e27459872deac9f9a2e6523cd5718f5c.tar.gz systemtap-steved-b4b406f3e27459872deac9f9a2e6523cd5718f5c.tar.xz systemtap-steved-b4b406f3e27459872deac9f9a2e6523cd5718f5c.zip |
2007-01-22 Martin Hunt <hunt@redhat.com>
* systemtap.maps/exists.stp: New test to see if
array elements exist using the "in" keyword.
Diffstat (limited to 'testsuite/systemtap.maps/exists.exp')
-rwxr-xr-x | testsuite/systemtap.maps/exists.exp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/systemtap.maps/exists.exp b/testsuite/systemtap.maps/exists.exp new file mode 100755 index 00000000..a223c9ce --- /dev/null +++ b/testsuite/systemtap.maps/exists.exp @@ -0,0 +1,19 @@ +# test the "in" keyword with maps + +load_lib "stap_run2.exp" + +set test "exists" +set ::result_string {0 is there +1 is there +comlete list for a: 0 1 2 3 4 5 6 7 8 9 10 +0 is still there +comlete list for b: [0,0] [1,10] [2,20] [3,30] [4,40] [5,50] [6,60] [7,70] [8,80] [9,90] [10,100] +[0,0] is still there +emtpy string there +hello there +emtpy string still there +} + +stap_run2 $srcdir/$subdir/$test.stp + + |