Explorar el Código

simplify exit code passthrough test

Jan Klemkow hace 6 años
padre
commit
d8f0ae2da0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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