Yet another attempt to make the timerfd-syscall test reliable.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11647
This commit is contained in:
Bart Van Assche
2011-03-17 07:45:46 +00:00
parent fb8198b2d0
commit 4a32a7d8be
2 changed files with 4 additions and 4 deletions

View File

@@ -268,8 +268,8 @@ int main(int ac, char **av)
else
{
const double delta = (ttmr - tnow) * 1e-6;
if (1.9 < delta && delta < 2.2)
fprintf(stderr, "got timer ticks (%ld) after about 2s\n", ticks);
if (19 <= ticks && ticks <= 21 && 1.9 < delta && delta < 2.2)
fprintf(stderr, "got about 20 timer ticks after about 2s\n", ticks);
else
fprintf(stderr, "got timer ticks (%ld) after %.2f s\n", ticks, delta);
}