diff --git a/libgomp/testsuite/libgomp.oacc-c++/c++.exp b/libgomp/testsuite/libgomp.oacc-c++/c++.exp index 7200ec19c47..42e0395f9a5 100644 --- a/libgomp/testsuite/libgomp.oacc-c++/c++.exp +++ b/libgomp/testsuite/libgomp.oacc-c++/c++.exp @@ -149,6 +149,7 @@ if { $lang_test_file_found } { gcc-dg-runtest $tests "$tagopt" "$libstdcxx_includes" } + unset offload_target } else { # Call this once, which placates the subsequent torture-finish. set-torture-options [list \ diff --git a/libgomp/testsuite/libgomp.oacc-c/c.exp b/libgomp/testsuite/libgomp.oacc-c/c.exp index 48cbc980731..4bb2b2ac494 100644 --- a/libgomp/testsuite/libgomp.oacc-c/c.exp +++ b/libgomp/testsuite/libgomp.oacc-c/c.exp @@ -112,6 +112,7 @@ foreach offload_target [concat [split $offload_targets ","] "disable"] { gcc-dg-runtest $tests "$tagopt" "" } +unset offload_target # All done. torture-finish diff --git a/libgomp/testsuite/libgomp.oacc-fortran/fortran.exp b/libgomp/testsuite/libgomp.oacc-fortran/fortran.exp index d6079032505..7365b320668 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/fortran.exp +++ b/libgomp/testsuite/libgomp.oacc-fortran/fortran.exp @@ -121,6 +121,7 @@ if { $lang_test_file_found } { # typically not the case for C/C++. gfortran-dg-runtest $tests "$tagopt" "" } + unset offload_target } # All done.