From 6f6d7696e56237a494af3decb00cee83c735c429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Thu, 22 Oct 2015 10:28:39 +0200 Subject: Replace "if $(MAKE) then false" by "! $(MAKE)" --- test/core_deps.mk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/core_deps.mk') diff --git a/test/core_deps.mk b/test/core_deps.mk index e2e5be7..415deb1 100644 --- a/test/core_deps.mk +++ b/test/core_deps.mk @@ -121,7 +121,7 @@ core-deps-apps-conflict: build clean-core-deps-apps-conflict $t $(MAKE) -C $(APP) new-lib in=cowlib $v $i "Check that building the application fails because of a conflict" - $t if $(MAKE) -C $(APP) $v; then false; fi + $t ! $(MAKE) -C $(APP) $v $i "Check that Cowlib wasn't fetched" $t test ! -e $(APP)/deps/cowlib @@ -140,7 +140,7 @@ core-deps-apps-deep-conflict: build clean-core-deps-apps-deep-conflict $t $(MAKE) -C $(APP) new-lib in=cowlib $v $i "Check that building the application fails because of a conflict" - $t if $(MAKE) -C $(APP) $v; then false; fi + $t ! $(MAKE) -C $(APP) $v $i "Check that Cowlib wasn't fetched" $t test ! -e $(APP)/deps/cowlib @@ -658,7 +658,7 @@ core-deps-fetch-fail-bad: build clean-core-deps-fetch-fail-bad $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = cowlib\ndep_cowlib = oops https://github.com/ninenines/cowlib 1.0.0\n"}' $(APP)/Makefile $i "Check that building the application fails" - $t if $(MAKE) -C $(APP) $v; then false; fi + $t ! $(MAKE) -C $(APP) $v core-deps-fetch-fail-unknown: build clean-core-deps-fetch-fail-unknown @@ -671,7 +671,7 @@ core-deps-fetch-fail-unknown: build clean-core-deps-fetch-fail-unknown $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = unknown\n"}' $(APP)/Makefile $i "Check that building the application fails" - $t if $(MAKE) -C $(APP) $v; then false; fi + $t ! $(MAKE) -C $(APP) $v core-deps-fetch-git: build clean-core-deps-fetch-git @@ -776,7 +776,7 @@ core-deps-fetch-legacy: build clean-core-deps-fetch-legacy $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = cowlib\ndep_cowlib = https://github.com/ninenines/cowlib 1.0.0\n"}' $(APP)/Makefile $i "Check that building the application fails" - $t if $(MAKE) -C $(APP) $v; then false; fi + $t ! $(MAKE) -C $(APP) $v $i "Check that building the application works with IS_DEP=1" $t $(MAKE) -C $(APP) IS_DEP=1 $v -- cgit v1.2.3