diff --git a/tests/opr/time-t.c b/tests/opr/time-t.c index d650c8fe4c..5d91b65ad2 100644 --- a/tests/opr/time-t.c +++ b/tests/opr/time-t.c @@ -43,7 +43,7 @@ main(int argc, char **argv) is_int(0, opr_time_Now(&oprTime), "opr_time_Now succeeds"); osNow = time(NULL); osTime = opr_time_ToSecs(&oprTime); - ok(abs(osTime - osNow) < 2, "opr_time_Now returns a reasonable value"); + ok(labs(osTime - osNow) < 2, "opr_time_Now returns a reasonable value"); return 0; }