From b50019f0aa44b1bdd189291330c21ed3b6421482 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Fri, 6 Oct 2006 08:32:33 +0000 Subject: barrier-1.c: Change timestamp tests from '<' to '<='. * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from '<' to '<='. From-SVN: r117491 --- libgomp/ChangeLog | 5 +++++ libgomp/testsuite/libgomp.c/barrier-1.c | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index d39005c..3c0fa09 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,5 +1,10 @@ 2006-10-05 Danny Smith + * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from + '<' to '<='. + +2006-10-05 Danny Smith + * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test. * configure: Regenerate. diff --git a/libgomp/testsuite/libgomp.c/barrier-1.c b/libgomp/testsuite/libgomp.c/barrier-1.c index 915f2de..1f8d1f0 100644 --- a/libgomp/testsuite/libgomp.c/barrier-1.c +++ b/libgomp/testsuite/libgomp.c/barrier-1.c @@ -38,13 +38,13 @@ int main() function (NULL); GOMP_parallel_end (); - assert (timercmp (&stamps[0][0], &stamps[0][1], <)); - assert (timercmp (&stamps[1][0], &stamps[0][1], <)); - assert (timercmp (&stamps[2][0], &stamps[0][1], <)); + assert (!timercmp (&stamps[0][0], &stamps[0][1], >)); + assert (!timercmp (&stamps[1][0], &stamps[0][1], >)); + assert (!timercmp (&stamps[2][0], &stamps[0][1], >)); - assert (timercmp (&stamps[0][1], &stamps[0][2], <)); - assert (timercmp (&stamps[0][1], &stamps[1][2], <)); - assert (timercmp (&stamps[0][1], &stamps[2][2], <)); + assert (!timercmp (&stamps[0][1], &stamps[0][2], >)); + assert (!timercmp (&stamps[0][1], &stamps[1][2], >)); + assert (!timercmp (&stamps[0][1], &stamps[2][2], >)); return 0; } -- cgit v1.1