testrun.sh: Exit in case of incorrect argument
authorMatthew Malcomson <matthew.malcomson@arm.com>
Mon, 4 Feb 2019 12:06:15 +0000 (13:06 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 4 Feb 2019 12:06:15 +0000 (13:06 +0100)
ChangeLog
Makefile

index 0c9a4e8..c074128 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-02-04  Matthew Malcomson  <matthew.malcomson@arm.com>
+
+       * Makefile (testrun.sh): Exit in case of incorrect argument.
+
 2019-02-04  Florian Weimer  <fweimer@redhat.com>
 
        * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
index 4a014d6..1bfe7fe 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -137,6 +137,7 @@ GCONV_PATH="$${builddir}/iconvdata"
 usage () {
   echo "usage: $$0 [--tool=strace] PROGRAM [ARGUMENTS...]" 2>&1
   echo "       $$0 --tool=valgrind PROGRAM [ARGUMENTS...]" 2>&1
+  exit 1
 }
 
 toolname=default