From patchwork Fri Dec 14 14:26:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Malcomson X-Patchwork-Id: 30667 Received: (qmail 51997 invoked by alias); 14 Dec 2018 14:26:30 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 51980 invoked by uid 89); 14 Dec 2018 14:26:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=20181129, 2018-11-29, Hx-languages-length:1037, H*c:HHH X-HELO: EUR01-HE1-obe.outbound.protection.outlook.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8olztWW2ebH4W+gVwtDLNV+/7m4OVhA8us+RfBGkZXQ=; b=RfU7pBWQnaovoxNQXrG4Knh3B/Vir4XHpHgfeyNiyk3GnFSCDCBD3lPexLL3JkLZ1wdO5agUO2sxkMC5EYcHhTczH9pCmJRsMdWsAG2hhpBec7el92xGwzwxRNBHxQVe3OK4QWuCaCNHwNhnE+gqoVtRUPTtJ8WZRZEu6DoWhAc= From: Matthew Malcomson To: "libc-alpha@sourceware.org" CC: nd Subject: [Patch] [Makefile] Exit if provided an incorrect argument Date: Fri, 14 Dec 2018 14:26:24 +0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Matthew.Malcomson@arm.com; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) MIME-Version: 1.0 At the moment the ./testrun.sh file generated for testing a new glibc doesn't handle incorrect arguments well. It prints the usage of the script in an infinite loop. This patch stops the infinite loop by exiting the program. Tested by manually running the script after building. I don't have commit rights, so if OK could someone commit this for me. OK for master? ChangeLog: 2018-11-29 Matthew Malcomson * Makefile (testrun.sh): Exit if provided incorrect arg. diff --git a/Makefile b/Makefile index b4703e48fec93075cd5e3ddd83469705d2fee8f8..1e1866be3da1ba4520911eb27016544de419161b 100644 --- a/Makefile +++ b/Makefile @@ -148,6 +148,7 @@ while test $$# -gt 0 ; do ;; --*) usage + exit 1 ;; *) break diff --git a/Makefile b/Makefile index b4703e48fec93075cd5e3ddd83469705d2fee8f8..1e1866be3da1ba4520911eb27016544de419161b 100644 --- a/Makefile +++ b/Makefile @@ -148,6 +148,7 @@ while test $$# -gt 0 ; do ;; --*) usage + exit 1 ;; *) break