From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by sourceware.org (Postfix) with ESMTPS id 1C6AA385840F for ; Thu, 17 Mar 2022 14:39:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1C6AA385840F Received: by mail-io1-xd36.google.com with SMTP id h63so6065642iof.12 for ; Thu, 17 Mar 2022 07:39:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=p1vLbgD4tkcuTyWKx62ztCcE8ZgNSA5KTRPCXqi5wUo=; b=OQNL2ih9+wnnzZhFsCYsJyMYzXJ8LaJNRPujeFGlt5wuTXkhW59kykHQ5vZMBbD8ML niGvRTflwbaynS+ynRPs7H6Ro5vid3O2IQskMl62gV0Q9bnGHcbTA43jfd0EVi9X89vP VMYRlwOOnLP/GQtVEs1dEfYzIBuuszLt6ESc9HnE+fm/6SHWhGLaNln99//gRILqfw+z FfmA8+3zyeGjluAohu3OB4vWRIwrXTW2vSmvUI4bP23u19tejIY2OEk0h3lb2ZY3q1HX 1T52CShDcvy8TcxAFbcbO170cDcA0gp4KqTzj9DzSAerCyDVGQchMrIbA0waZaVvRXOW Yx+Q== X-Gm-Message-State: AOAM5305U/DoXmcOgPsNN69NlwVxEE4lTmM4sP4ThQtz+dOmUBNpUuXV QsXddQV0DKkHdK2yeQ+0Ou3zhLYnkLUUTg== X-Google-Smtp-Source: ABdhPJzm9PjtSImAXYcp0CWrS7dWFfs2MuRZZe3ZFsHH5ABBMEfArJIaWvu9AiQI9I5emj9W4NQi4Q== X-Received: by 2002:a5d:8552:0:b0:63d:8cae:b2ca with SMTP id b18-20020a5d8552000000b0063d8caeb2camr2359452ios.81.1647527948336; Thu, 17 Mar 2022 07:39:08 -0700 (PDT) Received: from murgatroyd.Home (71-211-175-224.hlrn.qwest.net. [71.211.175.224]) by smtp.gmail.com with ESMTPSA id u15-20020a056e021a4f00b002c665afb993sm3385599ilv.11.2022.03.17.07.39.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 07:39:07 -0700 (PDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Don't test interface.exp without GNAT debug info Date: Thu, 17 Mar 2022 08:39:05 -0600 Message-Id: <20220317143905.1743262-1-tromey@adacore.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2022 14:39:10 -0000 The test gdb.ada/interface.exp requires some debug info in the GNAT runtime. When run without this info, the test can't pass. This patch changes the test to detect this situation and stop the test with "untested". --- gdb/testsuite/gdb.ada/interface.exp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdb/testsuite/gdb.ada/interface.exp b/gdb/testsuite/gdb.ada/interface.exp index 834da12b153..06b9660113b 100644 --- a/gdb/testsuite/gdb.ada/interface.exp +++ b/gdb/testsuite/gdb.ada/interface.exp @@ -17,6 +17,11 @@ load_lib "ada.exp" if { [skip_ada_tests] } { return -1 } +if {![gnat_runtime_has_debug_info]} { + untested "GNAT runtime debuginfo required for this test" + return -1 +} + standard_ada_testfile foo if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnat05 ]] != "" } { -- 2.34.1