[PR testsuite/65205] Fix dg-shouldfail usage in OpenACC libgomp tests
authorJames Norris <jnorris@codesourcery.com>
Thu, 30 Apr 2015 12:44:39 +0000 (12:44 +0000)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Thu, 30 Apr 2015 12:44:39 +0000 (14:44 +0200)
PR testsuite/65205
libgomp/
* testsuite/lib/libgomp.exp
(check_effective_target_openacc_host_selected)
(check_effective_target_openacc_host_nonshm_selected): New
procedures.
* testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
dg-shouldfail.
* testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.

From-SVN: r222620

46 files changed:
libgomp/ChangeLog
libgomp/testsuite/lib/libgomp.exp
libgomp/testsuite/libgomp.oacc-c-c++-common/clauses-2.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-11.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-16.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-17.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-18.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-2.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-20.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-21.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-22.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-23.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-25.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-26.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-27.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-28.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-29.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-3.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-30.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-34.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-35.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-36.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-39.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-4.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-40.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-42.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-43.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-44.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-47.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-48.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-52.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-53.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-54.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-57.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-58.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-62.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-63.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-64.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-65.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-67.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-68.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-71.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-77.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-80.c
libgomp/testsuite/libgomp.oacc-c-c++-common/present-1.c

index 4b0a1c91be678edbda5c50507b0b7ddb0d3f60a3..1621b90be7093806e4c77ba1dcdb32b2c0929e35 100644 (file)
@@ -1,3 +1,56 @@
+2015-04-30  James Norris  <jnorris@codesourcery.com>
+
+       PR testsuite/65205
+       * testsuite/lib/libgomp.exp
+       (check_effective_target_openacc_host_selected)
+       (check_effective_target_openacc_host_nonshm_selected): New
+       procedures.
+       * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
+       dg-shouldfail.
+       * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
+
 2015-04-08  Julian Brown  <julian@codesourcery.com>
 
        * libgomp.h (target_mem_desc: Remove mem_map field.
index 5a6eec12352d51f88ea563cce874fb520c7efcc7..438777f1fc4b70cbc73f3877995b0b150044d602 100644 (file)
@@ -345,3 +345,23 @@ proc check_effective_target_openacc_nvidia_accel_selected { } {
     }
     return 0;
 }
+
+# Return 1 if the host target is selected for offloaded
+
+proc check_effective_target_openacc_host_selected { } {
+    global offload_target_openacc
+    if { $offload_target_openacc == "host" } {
+        return 1;
+    }
+    return 0;
+}
+
+# Return 1 if the host_nonshm target is selected for offloaded
+
+proc check_effective_target_openacc_host_nonshm_selected { } {
+    global offload_target_openacc
+    if { $offload_target_openacc == "host_nonshm" } {
+        return 1;
+    }
+    return 0;
+}
index 8dc45cb6287ef13b002625b6a202ce9ffe1cc659..fec2214207b56270f0b11bce9bf2b77dabf28d10 100644 (file)
@@ -64,4 +64,5 @@ main (int argc, char **argv)
 
     return 0;
 }
-/* { dg-shouldfail "libgomp: \[\h+,\d+\] is not mapped" } */
+/* { dg-output "Trying to map into device \\\[0x\[0-9a-f\]+..0x\[0-9a-f\]+\\\) object when \\\[0x\[0-9a-f\]+..0x\[0-9a-f\]+\\\) is already mapped" }
+/* { dg-shouldfail "" } */
index 17129d8bebdc256b60fe8538f969ba2a6acff3ef..5ff23b24190fed3996f6a9a581f161d5bbc37af8 100644 (file)
@@ -21,4 +21,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: device already active" } */
+/* { dg-output "device already active" } */
+/* { dg-shouldfail "" } */
index eccdb8cbacf057a06e2941181ca6591181064231..e34a876e0d0d7ddf2397b86b6df431afdaab6e09 100644 (file)
@@ -20,4 +20,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: mem free failed 1" } */
+/* { dg-output "invalid device address" } */
+/* { dg-shouldfail "" } */
index 9d277ac39f7ba11c7777fb2fb42a45e64be83f49..ad73bd76452fe2f55102d94c08e9106f8d53baa1 100644 (file)
@@ -26,4 +26,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,\+256\] already mapped to \[\h+,\+256\]" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,\\\+256\\\] already mapped to \\\[0x\[0-9a-f\]+,\\\+256\\\]" } */
+/* { dg-shouldfail "" } */
index 5ff894cb33abff78ddf1d76e698182d104136f64..b568775e52a5079404f7933c63aad6bcacb53146 100644 (file)
@@ -28,4 +28,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,256\] is not mapped" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,256\\\] is not mapped" } */
+/* { dg-shouldfail "" } */
index 2bc32637d36b259128044586d89c89c3316478e1..33ebce9b972056696446661e87ace28aa57b1f44 100644 (file)
@@ -31,4 +31,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,256\] is not mapped" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,256\\\] is not mapped" } */
+/* { dg-shouldfail "" } */
index 9a4501f0e00995df93640699ba06462c2ea3c256..b16e9e6bdbceef0862152b3e60023f409d0434a0 100644 (file)
@@ -23,4 +23,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: no device initialized" } */
+/* { dg-output "no device initialized" } */
+/* { dg-shouldfail "" } */
index b379a8f7add94323b8ecef0839cd1b04e3f8e576..aaab2ecb144017fea4ee9c6fc42103a9d84f3e1e 100644 (file)
@@ -26,4 +26,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,256\] surounds2 \[\h+,\+257\]" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,256\\\] surrounds2 \\\[0x\[0-9a-f\]+,\\\+257\\\]" } */
+/* { dg-shouldfail "" } */
index 3a67400a62015394a88652be55ba2e2d6087e610..5bd90784b38db806df3abef09b5e9f8df176a3fe 100644 (file)
@@ -26,4 +26,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,0\] is not mapped" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,0\\\] is not mapped" } */
+/* { dg-shouldfail "" } */
index 2b86da8058004d65b6fe5640db25890dd15cd2a1..638180e64277beae598feae382a294b7b01b9325 100644 (file)
@@ -26,4 +26,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,256\] surrounds2 \[\h+,\+255\]" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,256\\\] surrounds2 \\\[0x\[0-9a-f\]+,\\\+255\\\]" } */
+/* { dg-shouldfail "" } */
index 38f236dcea904f38b1f6d9415e14c11af0f2c6dd..54dd0f33e9b1eb78bb292d0ba5ccf2e97327587d 100644 (file)
@@ -36,4 +36,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,256\] surrounds2 \[\h+,\+512\]" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,256\\\] surrounds2 \\\[0x\[0-9a-f\]+,\\\+512\\\]" } */
+/* { dg-shouldfail "" } */
index 11458283b2cff46bca9fdc21f766074e4a0d1146..76f191165b7a782c157f4ae83175d9518affa999 100644 (file)
@@ -27,4 +27,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,256\] already mapped to \[\h+,256\]" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,\\\+256\\\] already mapped to \\\[0x\[0-9a-f\]+,\\\+256\\\]" } */
+/* { dg-shouldfail "" } */
index a23f56e753fb558fafb112be403b7c2367fed75b..cdbc38ed9776cbe122f2f8d8d2fa66fab8c32248 100644 (file)
@@ -23,4 +23,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,\+0\] is a bad range" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,\\\+0\\\] is a bad range" } */
+/* { dg-shouldfail "" } */
index 074fddb2ab707d27561f49bfc4dda76032d1c375..0edec6f848e70d4bd4364a24159323d0e4e68409 100644 (file)
@@ -23,4 +23,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\(nil\)\] is a bad range" } */
+/* { dg-output "\\\[\\\(nil\\\),\\\+256\\\] is a bad range" } */
+/* { dg-shouldfail "" } */
index 027f7cc6460d57d0a418b5d107d3277f76b848e2..453763d865e3bc73d15f670fbb4a2b986c47c9e1 100644 (file)
@@ -23,4 +23,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\(nil\),256\] is not mapped" } */
+/* { dg-output "\\\[\\\(nil\\\),256\\\] is not mapped" } */
+/* { dg-shouldfail "" } */
index a66de0f538de1b30710521f40483df09937ada50..b3326ea0f492899b24e3b1e263eed4dccd3990a5 100644 (file)
@@ -23,4 +23,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,0\] is not mapped" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,0\\\] is not mapped" } */
+/* { dg-shouldfail "" } */
index e823a4153fa5efd64bb71a4efc05c27acb3dbdd3..bb76c826fb694bf4c5c1a146493487f04fb8994b 100644 (file)
@@ -12,4 +12,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: device 4(4) is initialized" } */
+/* { dg-output "device \[0-9\]+\\\(\[0-9\]+\\\) is initialized" } */
+/* { dg-shouldfail "" } */
index ce2bdb4473969a48784d0d141711218e3e4d1a8f..3176e24a385104e74af02541e777399bdb9d428c 100644 (file)
@@ -23,4 +23,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,256\] surrounds2 \[\h+,\+254\]" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,256\\\] surrounds2 \\\[0x\[0-9a-f\]+,\\\+254\\\]" } */
+/* { dg-shouldfail "" } */
index 32d5d5117e6157dfaded6c3c80c8720663785259..cbe938f9c312724b572fc3c199897b5d66f0a68b 100644 (file)
@@ -30,4 +30,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,\+256\] not mapped" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,\\\+256\\\] not mapped" } */
+/* { dg-shouldfail "" } */
index ca8edab52a2caa4f825c4628a308e049155ec8d9..4fe15daf3e02f8d0d83cd7c69f69659dfe1fabc4 100644 (file)
@@ -23,4 +23,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\(nil\),+256\] is a bad range" } */
+/* { dg-output "\\\[\\\(nil\\\),\\\+256\\\] is a bad range" } */
+/* { dg-shouldfail "" } */
index cb29397e14e8cacd03602b90d08958299a508275..0fd296a284f1681767d407e222f5fba7375ad8b9 100644 (file)
@@ -23,4 +23,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,\+0\] is a bad range" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,\\\+0\\\] is a bad range" } */
+/* { dg-shouldfail "" } */
index db1e0b3ffd5b87ed0240b559b1e27b7da518d280..e8caa38248e945bc5243c15591744728d70d0735 100644 (file)
@@ -38,4 +38,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\(nil\),+256\] is a bad range" } */
+/* { dg-output "\\\[\\\(nil\\\),\\\+256\\\] is a bad range" } */
+/* { dg-shouldfail "" } */
index 060275b999bdb79f7415ed48066bdd6bf9790086..35f94403735b74eda6e5c4eada5a835b59e616b4 100644 (file)
@@ -10,4 +10,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: device 99 is out of range" } */
+/* { dg-output "device \[0-9\]+ out of range" } */
+/* { dg-shouldfail "" } */
index cb6c422872edc4638b6ffa0e8f165f22ddb4afa6..0a6607beb88c394ecfa38a451346f3bddcb1a56a 100644 (file)
@@ -39,4 +39,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,\+0\] is a bad range" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,\\\+0\\\] is a bad range" } */
+/* { dg-shouldfail "" } */
index d577fe37e53de6b2a682bee83ab0c8364f5920c1..cb5a7b24770fb64c4ff2814093626cbd96f965d0 100644 (file)
@@ -32,4 +32,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,256\] is not mapped" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,256\\\] is not mapped" } */
+/* { dg-shouldfail "" } */
index ceeb155fe448316e902d174d9844f88c36d1d1cb..2c2220d2a79b3b10c2561058573623a559f3a7c7 100644 (file)
@@ -42,4 +42,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\(nil\),256\] is not mapped" } */
+/* { dg-output "\\\[\\\(nil\\\),256\\\] is not mapped" } */
+/* { dg-shouldfail "" } */
index 0cabb0d31d9739246d0df5d7ed21c98ba2579de3..05d30525e71fe11525ed1aec6299c0b97a91dff3 100644 (file)
@@ -42,4 +42,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,0\] is not mapped" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,0\\\] is not mapped" } */
+/* { dg-shouldfail "" } */
index a7ff904c97c5a3575bad4924956ea64461592f56..c217bc094ef98862ddf32ea9a3004de4c65dd49b 100644 (file)
@@ -40,4 +40,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\(nil\),256\] is not mapped" } */
+/* { dg-output "\\\[\\\(nil\\\),256\\\] is not mapped" } */
+/* { dg-shouldfail "" } */
index 01d3c6c82803ae3fd235e1f9f285e1f1b84bc145..1dce1975b96183358cee0c70fa0fbbc96f436be5 100644 (file)
@@ -40,4 +40,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,0\] is not mapped" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,0\\\] is not mapped" } */
+/* { dg-shouldfail "" } */
index 780db310fa1a33aec2d239d5867f6b7529d8c59a..782e26779d0bcd0595d611806f071b0444b8ab99 100644 (file)
@@ -25,4 +25,6 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[(nil),+256\]->\[\h+,\+256\] is a bad map" } */
+/* { dg-output "\\\[\\\(nil\\\),\\\+256\]->\[0x\[0-9a-f\]+,\\\+256\\\] is a bad map" { target openacc_nvidia_accel_selected } } */
+/* { dg-output "cannot map data on shared-memory system" { target openacc_host_selected } } */
+/* { dg-shouldfail "" } */
index 657adde3b02592a8f0cccd2f2639da2cd04ebf6c..7e0a288194b71787f25a17e5fe51d7fc53fb2b8b 100644 (file)
@@ -25,4 +25,6 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,\+256\]->\[(nil),\+256\] is a bad map" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,\\\+256\]->\\\[\\\(nil\\\),\\\+256\\\] is a bad map" { target openacc_nvidia_accel_selected } } */
+/* { dg-output "cannot map data on shared-memory system" { target openacc_host_selected } } */
+/* { dg-shouldfail "" } */
index 1f3df80bd4187223ccc5ede242adf9090abd32fc..fa35a05356a1a394df5ed3d467da93400941ba4b 100644 (file)
@@ -25,4 +25,6 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \[\h+,\+0\]->\[\h+,\+0\] is a bad map" } */
+/* { dg-output "\\\[0x\[0-9a-f\]+,\\\+0\\\]->\\\[0x\[0-9a-f\]+,\\\+0\\\] is a bad map" { target openacc_nvidia_accel_selected } } */
+/* { dg-output "cannot map data on shared-memory system" { target openacc_host_selected } } */
+/* { dg-shouldfail "" } */
index f9043a445dfe9d3c5ab5a1ec09daed252aa16560..7e41c4a18f98facbee23cb296453681bec7988ad 100644 (file)
@@ -25,4 +25,6 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \h+ is not a mapped block" } */
+/* { dg-output "0x\[0-9a-f\]+ is not a mapped block" { target openacc_nvidia_accel_selected } } */
+/* { dg-output "cannot map data on shared-memory system" { target openacc_host_selected } } */
+/* { dg-shouldfail "" } */
index 9d6e27d89e95e95f0f98986556b6506a9822e32e..44353d2deddb4c0b19bd0a98079ca590bab650b4 100644 (file)
@@ -25,4 +25,6 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: \(nil\) is not a mapped block" } */
+/* { dg-output "\\\(nil\\\) is not a mapped block" { target openacc_nvidia_accel_selected } } */
+/* { dg-output "cannot map data on shared-memory system" { target openacc_host_selected } } */
+/* { dg-shouldfail "" } */
index e6178e233ed67911ac4902d731dda526c4b183e9..47dc953c69c7f7d688c656b792dfa902fca7efc7 100644 (file)
@@ -46,4 +46,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: invalid size" } */
+/* { dg-output "invalid size" } */
+/* { dg-shouldfail "" } */
index ca237ec1b60cf02ad13ecdc150c1fa37d4377a0b..69c061e3a9079c670cc5530511c9dbfece4ea681 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run } */
+/* { dg-do run { target openacc_nvidia_accel_selected } } */
 
 #include <string.h>
 #include <stdlib.h>
@@ -40,4 +40,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: invalid device address" } */
+/* { dg-output "invalid device address" } */
+/* { dg-shouldfail "" } */
index 850fd2e3f91e572fab14adc31f1d61cc083987f9..6a785b03947194ad4a560ebe0381f6f6c728bdf2 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run } */
+/* { dg-do run { target openacc_nvidia_accel_selected } } */
 
 #include <string.h>
 #include <stdlib.h>
@@ -40,4 +40,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: invalid host address" } */
+/* { dg-output "invalid host address" } */
+/* { dg-shouldfail "" } */
index 26c8cefdc428e222985ec663ee265e18014a9299..0f2f9ebe4fdb1d9870b020067b561d95eb02cc86 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run } */
+/* { dg-do run { target openacc_nvidia_accel_selected } } */
 
 #include <string.h>
 #include <stdlib.h>
@@ -40,4 +40,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: invalid host or device address" } */
+/* { dg-output "invalid host or device address" } */
+/* { dg-shouldfail "" } */
index 01b8b2d89ae9b15c592e391d088a704534bb4e62..31b8c1fe5e6525d2b7d6bb0beda822f5b6cdbcbd 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run } */
+/* { dg-do run { target openacc_nvidia_accel_selected } } */
 
 #include <string.h>
 #include <stdlib.h>
@@ -40,4 +40,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: invalid host address" } */
+/* { dg-output "invalid host address" } */
+/* { dg-shouldfail "" } */
index 3ff5bd7bcf7a2e206b05cf096547a1a91f2e13e2..dc39770aeceb9ad72059a160e54b14302f682945 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run } */
+/* { dg-do run { target openacc_nvidia_accel_selected } } */
 
 #include <string.h>
 #include <stdlib.h>
@@ -40,4 +40,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: invalid device address" } */
+/* { dg-output "invalid device address" } */
+/* { dg-shouldfail "" } */
index a04537916f6d5ae9a76e9f78e70bcf9786782abd..e8584db27cf54944eebe941c743aaaef2f18e0d3 100644 (file)
@@ -116,4 +116,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: unknown async \d" } */
+/* { dg-output "unknown async \[0-9\]+" } */
+/* { dg-shouldfail "" } */
index e47212b2139ddb547df9c9ad5986ef3dd54d25bd..35a09801cbe9d07a63eaaa5bed1d3bcc8863e4ab 100644 (file)
@@ -132,4 +132,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: unknown async \d" } */
+/* { dg-output "unknown async \[0-9\]+" } */
+/* { dg-shouldfail "" } */
index 0b5ec24b28e47ad940a5e711e0150e66e57660a2..d521331210d77f3adf3ebb225066b08b69872157 100644 (file)
@@ -129,4 +129,5 @@ main (int argc, char **argv)
   return 0;
 }
 
-/* { dg-shouldfail "libgomp: identical parameters" } */
+/* { dg-output "identical parameters" } */
+/* { dg-shouldfail "" } */
index f331f1f63701899ea15df025202ec1b658fd4738..d8fcb716b9bae31438bca51564b9244146fd3c28 100644 (file)
@@ -45,4 +45,5 @@ main (int argc, char **argv)
 
     return 0;
 }
-/* { dg-shouldfail "libgomp: present clause: !acc_is_present" } */
+/* { dg-output "present clause: !acc_is_present" } */
+/* { dg-shouldfail "" } */