Explorar o código

add test for usage

Jan Klemkow %!s(int64=6) %!d(string=hai) anos
pai
achega
31c039eec4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Makefile

+ 3 - 1
Makefile

@@ -10,6 +10,8 @@ install: scroll
 	cp scroll ${BINDIR}
 
 test: scroll
-	# return code passthrough of childs
+	# check usage
+	if ./scroll; then exit 1; fi
+	# check exit passthrough of child
 	if ! ./scroll true;  then exit 1; fi
 	if   ./scroll false; then exit 1; fi