Browse Source

simplify exit code passthrough test

Jan Klemkow 6 năm trước cách đây
mục cha
commit
d8f0ae2da0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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