diff options
author | hunt <hunt> | 2007-09-17 17:05:30 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-09-17 17:05:30 +0000 |
commit | ca24ee856ce8799647483d9289d1dbd91f8cbb04 (patch) | |
tree | 636b3409e0aa7686b4394114ed4a7e9269c36fb8 /testsuite/systemtap.samples | |
parent | 76a7bcf1f6d0081540f744129c356e837df1e585 (diff) | |
download | systemtap-steved-ca24ee856ce8799647483d9289d1dbd91f8cbb04.tar.gz systemtap-steved-ca24ee856ce8799647483d9289d1dbd91f8cbb04.tar.xz systemtap-steved-ca24ee856ce8799647483d9289d1dbd91f8cbb04.zip |
2007-09-17 Martin Hunt <hunt@redhat.com>
* systemtap.samples/system_func.stp: PR4466
Add some additional checks to eliminates any races in output.
Diffstat (limited to 'testsuite/systemtap.samples')
-rw-r--r-- | testsuite/systemtap.samples/system_func.stp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/systemtap.samples/system_func.stp b/testsuite/systemtap.samples/system_func.stp index 0b074514..d14fb25b 100644 --- a/testsuite/systemtap.samples/system_func.stp +++ b/testsuite/systemtap.samples/system_func.stp @@ -2,7 +2,7 @@ # test the system() function -global saw_echo +global saw_echo, did_cat probe kernel.function("sys_open") { if (!saw_echo) { @@ -16,9 +16,13 @@ probe kernel.function("sys_open") { probe timer.ms(100) { # should fail system("cat __xyzzy123ABC__") + did_cat = 1 } -probe timer.ms(110) { exit() } +probe timer.ms(150) { + if (saw_echo && did_cat) + exit() +} probe begin { # should succeed |