diff options
Diffstat (limited to 'libgomp/testsuite/libgomp.oacc-c-c++-common/lib-3.c')
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/lib-3.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-3.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-3.c index 7118797a84f..f9a73397573 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-3.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-3.c @@ -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 <stdio.h> #include <openacc.h> @@ -15,6 +17,5 @@ main (int argc, char **argv) } /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */ -/* TODO: currently prints: "libgomp: no device found". */ -/* { dg-output "device \[0-9\]+\\\(\[0-9\]+\\\) is initialized" { xfail *-*-* } } */ +/* { dg-output "no device initialized" } */ /* { dg-shouldfail "" } */ |