From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by sourceware.org (Postfix) with ESMTPS id 7AE47386CE49 for ; Tue, 14 Jun 2022 01:08:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7AE47386CE49 Received: by mail-oi1-x22e.google.com with SMTP id bl34so9886220oib.1 for ; Mon, 13 Jun 2022 18:08:42 -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=i7461Rhoxjxkm8ZFH2PuX/ADQhZV6XG2B0biOj3kWoM=; b=QpzmRP/p29EGVzlZOx46p/vYhgesCJZfnY9sjE32i1Fxx8qPv1G89ekZm9Ff3tY/Fj gVMpwma8BAzFfZgWwSLa5p6MSw3S5DUAifYGW0Z6uoj8VATiD/BdWJZTJAFfFqluKMr4 XlvyeyrhOQVJm5ITYkoou9msKI8D7cxWsPyKw+jRY6tUuze9soAfcPtBoSytzqTyO/ef SfY9MDyE2QOoTSEtj0jcNlbGdOsfIYxqIVTDu+R6/CGptoFmTD2AsoCrHVF2uub0BkgS 4QbmHLH45NMR9//7RznxS/HutLBaMYKi7VZnPEis0GnxuTsMoCTCrHxe9dm49QIeGxdl nTvA== X-Gm-Message-State: AOAM531K+bKJ/1PXF1KrLh9wKKIURYgAa15CMkG11EjzefrwNnrvEW6y cZc79ZNMiTawgttFO7Mp+mbtJcAZVSuxeg== X-Google-Smtp-Source: ABdhPJxAdhq+0nWjIyFNUnKZPyFFDVwHas8mu5s3dFFDgL7rhhmk7VPxprq7VOOMthuTAK1Nrrtw3A== X-Received: by 2002:a05:6808:14cf:b0:32f:1805:5c4f with SMTP id f15-20020a05680814cf00b0032f18055c4fmr794994oiw.197.1655168921447; Mon, 13 Jun 2022 18:08:41 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:79e6:9253:1b99:c65e]) by smtp.gmail.com with ESMTPSA id u11-20020a056871008b00b000fe340ee821sm4809591oaa.43.2022.06.13.18.08.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 18:08:40 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [PATCH] gdb/testsuite: Relax RE for missing compiler in gdb_compile_test Date: Mon, 13 Jun 2022 21:53:28 -0300 Message-Id: <20220614005328.427903-1-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 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.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Tue, 14 Jun 2022 01:08:44 -0000 In Linaro's CI environment GNATMAKE_FOR_TARGET contains flags such as "--sysroot=..." and "-Wl,...". Because of that, it contains spaces. Since gdb_compile_test's regular expression to detect a missing compiler doesn't allow spaces, and also since the Linaro CI isn't available the Ada testcases which need to build a test binary fail instead of being marked as unsupported. Therefore relax the regexp so that it matches output containing spaces. --- gdb/testsuite/lib/gdb.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 75efc4a62d1a..5ab566d1d569 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2303,7 +2303,7 @@ proc gdb_compile_test {src output} { return } - if { [regexp {^[a-zA-Z_0-9]+: Can't find [^ ]+\.$} $output] + if { [regexp {^[a-zA-Z_0-9]+: Can't find .+\.$} $output] || [regexp {.*: command not found[\r|\n]*$} $output] || [regexp {.*: [^\r\n]*compiler not installed[^\r\n]*[\r|\n]*$} $output] } { unsupported "$msg (missing compiler)" base-commit: c2ac533e98438df5e5c2c58cce104c927ad42d09