From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by sourceware.org (Postfix) with ESMTPS id 59B24385041D for ; Mon, 4 Jan 2021 09:07:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 59B24385041D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tdevries@suse.de X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 641D7ACBA; Mon, 4 Jan 2021 09:07:20 +0000 (UTC) Date: Mon, 4 Jan 2021 10:07:18 +0100 From: Tom de Vries To: dwz@sourceware.org, jakub@redhat.com Subject: [committed][testsuite] Detect when devel-ignore-size.sh is unsupported Message-ID: <20210104090717.GA30479@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2021 09:07:24 -0000 Hi, In PR27115, a failure of devel-ignore-size.sh is reported. The test-case: - tries to transform an executable - checks that it didn't transform - retries using --devel-ignore-size - check that it did transform The reported failure is in the second step. Fix this by marking the test unsupported if the second step fails. Committed to trunk. Thanks, - Tom [testsuite] Detect when devel-ignore-size.sh is unsupported 2021-01-04 Tom de Vries PR dwz/27115 * testsuite/dwz.tests/devel-ignore-size.sh: If exec is transformed without --devel-ignore-size, mark unsupported. --- testsuite/dwz.tests/devel-ignore-size.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testsuite/dwz.tests/devel-ignore-size.sh b/testsuite/dwz.tests/devel-ignore-size.sh index 5134043..78d28a2 100644 --- a/testsuite/dwz.tests/devel-ignore-size.sh +++ b/testsuite/dwz.tests/devel-ignore-size.sh @@ -12,7 +12,9 @@ cnt=$(readelf -wi 1 \ | grep '(DW_TAG_partial_unit' \ | wc -l) -[ $cnt -eq 0 ] +if [ $cnt -ne 0 ]; then + exit 77 +fi cp $execs/min 1