]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: Add require allow_hipcc_tests in gdb.rocm/mi-attach.exp
authorLancelot SIX <lancelot.six@amd.com>
Tue, 6 May 2025 10:39:55 +0000 (11:39 +0100)
committerLancelot SIX <lancelot.six@amd.com>
Tue, 6 May 2025 14:47:23 +0000 (15:47 +0100)
The gdb.rocm/mi-attach.exp test is missing a proper `require` check to
ensure that the current configuration can run ROCm tests.  This issue
has been reported by Baris.

This patch adds the missing `allow_hipcc_tests` requirement, and also
adds `load_lib rocm.exp` to enable this test.

Change-Id: Ie136adfc2d0854268b92af5c4df2dd0334dce259
Reviewed-By: Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.rocm/mi-attach.exp

index 2ca610ce081c4ffb2d833c2b17e79b01573a5cc7..37ce92a633aac29bffd4f8110e89f872ee50299c 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+load_lib rocm.exp
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
-require can_spawn_for_attach
+require can_spawn_for_attach allow_hipcc_tests
 
 standard_testfile .cpp