aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorLancelot SIX <lancelot.six@amd.com>2023-02-06 18:05:31 +0000
committerLancelot SIX <lancelot.six@amd.com>2023-02-13 09:42:13 +0000
commit09ad7eb8cc670356aff71e59b22038590c397a21 (patch)
treece56283d80e6c53baa5dc463be29e6add5b257cb /gdb
parent08d8af48e49d59efd5780bb9e360730d4fd149b1 (diff)
downloadgdb-09ad7eb8cc670356aff71e59b22038590c397a21.zip
gdb-09ad7eb8cc670356aff71e59b22038590c397a21.tar.gz
gdb-09ad7eb8cc670356aff71e59b22038590c397a21.tar.bz2
gdb/testsuite: Rename skip_hipcc_tests to allow_hipcc_tests
Rename skip_hipcc_tests to allow_hipcc_tests so it can be used as a "require" predicate in tests. Use require in gdb.rocm/simple.exp. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.rocm/simple.exp5
-rw-r--r--gdb/testsuite/lib/rocm.exp6
2 files changed, 4 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.rocm/simple.exp b/gdb/testsuite/gdb.rocm/simple.exp
index f84df71..befcc7a 100644
--- a/gdb/testsuite/gdb.rocm/simple.exp
+++ b/gdb/testsuite/gdb.rocm/simple.exp
@@ -20,10 +20,7 @@ load_lib rocm.exp
standard_testfile .cpp
-if [skip_hipcc_tests] {
- verbose "skipping hip test: ${testfile}"
- return
-}
+require allow_hipcc_tests
if {[build_executable "failed to prepare" $testfile $srcfile {debug hip}]} {
return
diff --git a/gdb/testsuite/lib/rocm.exp b/gdb/testsuite/lib/rocm.exp
index e22f392..1440ac8 100644
--- a/gdb/testsuite/lib/rocm.exp
+++ b/gdb/testsuite/lib/rocm.exp
@@ -15,14 +15,14 @@
#
# Support library for testing ROCm (AMD GPU) GDB features.
-proc skip_hipcc_tests { } {
+proc allow_hipcc_tests { } {
# Only the native target supports ROCm debugging. E.g., when
# testing against GDBserver, there's no point in running the ROCm
# tests.
if {[target_info gdb_protocol] != ""} {
- return 1
+ return 0
}
- return 0
+ return 1
}
# The lock file used to ensure that only one GDB has access to the GPU