diff options
author | jistone <jistone> | 2006-10-30 23:06:45 +0000 |
---|---|---|
committer | jistone <jistone> | 2006-10-30 23:06:45 +0000 |
commit | 7dd1dbf4b5a6591eebd8b5b9844ee5b31bd4be8c (patch) | |
tree | 364d4c39db1b6257b143819808ca21065e0652aa /testsuite/systemtap.base | |
parent | 390ab50cdb56d61bb3195edad8721dc3c80fe25e (diff) | |
download | systemtap-steved-7dd1dbf4b5a6591eebd8b5b9844ee5b31bd4be8c.tar.gz systemtap-steved-7dd1dbf4b5a6591eebd8b5b9844ee5b31bd4be8c.tar.xz systemtap-steved-7dd1dbf4b5a6591eebd8b5b9844ee5b31bd4be8c.zip |
2006-10-30 Josh Stone <joshua.i.stone@intel.com>
* systemtap.base/timers.stp: Fudge the comparison a bit between
jiffies(1) and profile to allow for slop between start/end times.
Diffstat (limited to 'testsuite/systemtap.base')
-rw-r--r-- | testsuite/systemtap.base/timers.stp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/systemtap.base/timers.stp b/testsuite/systemtap.base/timers.stp index 8b990aab..fb590edc 100644 --- a/testsuite/systemtap.base/timers.stp +++ b/testsuite/systemtap.base/timers.stp @@ -38,7 +38,8 @@ probe end /* profile counter should be non-zero, and at * least as many as the jiffies(1) counter */ - if ((p > 0) && (p >= j1)) { + /* (fudge comparison by ~1% since start & end aren't synchronized) */ + if ((p > 0) && (p*100 >= j1*99)) { printf("systemtap test success\n") } else { printf("unexpected profile count: %d profiles and %d jiffies\n", p, j1) |