diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-09-14 11:09:46 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-09-15 16:17:59 -0400 |
commit | 947e047fac434621264f7212bbaa97580490d4fd (patch) | |
tree | 2ee6b911edb102895e4586527b874411860ce0cb /gdb | |
parent | c6ae604573f9e9d7b7a15388bdba2d1dabecd131 (diff) | |
download | binutils-947e047fac434621264f7212bbaa97580490d4fd.zip binutils-947e047fac434621264f7212bbaa97580490d4fd.tar.gz binutils-947e047fac434621264f7212bbaa97580490d4fd.tar.bz2 |
gdb/testsuite: add linux target check in allow_hipcc_tests
ROCm / HIP tests should only run on Linux for now, existing gdb.rocm
tests miss such a check. Add an "istarget linux" check in
allow_hipcc_tests.
Change-Id: I71f69e510a754f2fdadc32de53b923ebb9835ab5
Approved-By: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/lib/rocm.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/rocm.exp b/gdb/testsuite/lib/rocm.exp index 98a3b30..791f1b4 100644 --- a/gdb/testsuite/lib/rocm.exp +++ b/gdb/testsuite/lib/rocm.exp @@ -67,6 +67,10 @@ gdb_caching_proc allow_hipcc_tests {} { return {0 "remote debugging"} } + if {![istarget "*-linux*"]} { + return {0 "target platform is not Linux"} + } + # Ensure that GDB is built with amd-dbgapi support. set output [remote_exec host $::GDB "$::INTERNAL_GDBFLAGS --configuration"] if { [string first "--with-amd-dbgapi" $output] == -1 } { |