From: Lancelot SIX Date: Tue, 6 May 2025 10:39:55 +0000 (+0100) Subject: gdb/testsuite: Add require allow_hipcc_tests in gdb.rocm/mi-attach.exp X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d771893cca824dbda1f88c747dc0868a771079de;p=thirdparty%2Fbinutils-gdb.git gdb/testsuite: Add require allow_hipcc_tests in gdb.rocm/mi-attach.exp 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 Approved-By: Tom Tromey --- diff --git a/gdb/testsuite/gdb.rocm/mi-attach.exp b/gdb/testsuite/gdb.rocm/mi-attach.exp index 2ca610ce081..37ce92a633a 100644 --- a/gdb/testsuite/gdb.rocm/mi-attach.exp +++ b/gdb/testsuite/gdb.rocm/mi-attach.exp @@ -13,10 +13,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +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