summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base')
-rw-r--r--testsuite/systemtap.base/timers.stp3
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)