Jelajahi Sumber

simplify exit code passthrough test

Jan Klemkow 6 tahun lalu
induk
melakukan
d8f0ae2da0
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -10,5 +10,5 @@ clean:
 
 test: scroll
 	# return code passthrough of childs
-	./scroll /usr/bin/true  && if [ $$? -ne 0 ]; then exit 1; fi
-	./scroll /usr/bin/false || if [ $$? -ne 1 ]; then exit 1; fi
+	if ! ./scroll /usr/bin/true;  then exit 1; fi
+	if   ./scroll /usr/bin/false; then exit 1; fi