OSDN Git Service

* testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Oct 2006 08:32:33 +0000 (08:32 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Oct 2006 08:32:33 +0000 (08:32 +0000)
'<' to '<='.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117491 138bc75d-0d04-0410-961f-82ee72b054a4

libgomp/ChangeLog
libgomp/testsuite/libgomp.c/barrier-1.c

index d39005c..3c0fa09 100644 (file)
@@ -1,5 +1,10 @@
 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
 
 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
 
+       * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
+       '<' to '<='.
+
+2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
+
        * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
        test.
        * configure: Regenerate.
        * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
        test.
        * configure: Regenerate.
index 915f2de..1f8d1f0 100644 (file)
@@ -38,13 +38,13 @@ int main()
   function (NULL);
   GOMP_parallel_end ();
 
   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;
 }
 
   return 0;
 }