Restrict the pr86763 test to *-*-linux* targets
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 21 Aug 2018 09:22:14 +0000 (09:22 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Tue, 21 Aug 2018 09:22:14 +0000 (09:22 +0000)
clock_gettime is not available on some baremetal targets
and may require -lrt on some non-linux targets.

gcc/testsuite/ChangeLog:

* g++.dg/torture/pr86763.C: Restrict to *-*-linux*.

From-SVN: r263694

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr86763.C

index eb143b3..ccdaa1e 100644 (file)
@@ -1,3 +1,7 @@
+2018-08-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * g++.dg/torture/pr86763.C: Restrict to *-*-linux*.
+
 2018-08-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
        PR middle-end/86121
index 79523b2..8455ac9 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-do run }
+// { dg-do run { target { *-*-linux* } } }
 // { dg-additional-options "-fschedule-insns2 -fstrict-aliasing" }
-// { dg-additional-options "-lrt" { target *-*-linux-gnu } }
+// { dg-additional-options "-lrt" }
 
 #include <cstdint>
 #include <cassert>