diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2006-10-06 08:32:33 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@gcc.gnu.org> | 2006-10-06 08:32:33 +0000 |
commit | b50019f0aa44b1bdd189291330c21ed3b6421482 (patch) | |
tree | 5f4eb4f6c5f0a54e763df45cd64473ee8c41cf11 /libgomp/testsuite | |
parent | 8887708edc83bd88890140789324c0880ecbe1ca (diff) | |
download | gcc-b50019f0aa44b1bdd189291330c21ed3b6421482.zip gcc-b50019f0aa44b1bdd189291330c21ed3b6421482.tar.gz gcc-b50019f0aa44b1bdd189291330c21ed3b6421482.tar.bz2 |
barrier-1.c: Change timestamp tests from '<' to '<='.
* testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
'<' to '<='.
From-SVN: r117491
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.c/barrier-1.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; } |