@@ -1,3 +1,7 @@
+2015-07-22 Thomas Schwinge <thomas@codesourcery.com>
+
+ * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
+
2015-07-21 James Norris <jnorris@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Additional tests.
@@ -1,4 +1,6 @@
-/* { dg-do run } */
+/* Expect an error message when shutting down a device different from the one
+ that has been initialized. */
+/* { dg-do run { target { ! openacc_host_selected } } } */
#include <openacc.h>
@@ -6,12 +8,10 @@ int
main (int argc, char **argv)
{
acc_init (acc_device_host);
-
- acc_shutdown (acc_device_not_host);
+ acc_shutdown (acc_device_default);
return 0;
}
-/* TODO: currently prints: "libgomp: no device found". */
-/* { dg-output "device \[0-9\]+\\\(\[0-9\]+\\\) is initialized" { xfail *-*-* } } */
+/* { dg-output "no device initialized" } */
/* { dg-shouldfail "" } */