From 9c8b68a905871882905fad6ca72c499a98bc2513 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 11 Jan 2014 16:10:02 -0500 Subject: * main.c (die): Close output_context AND make_sync. die() can be invoked inside a separate output_context, if the $(error ...) function is expanded as part of a recipe. --- tests/scripts/features/output-sync | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/scripts/features/output-sync b/tests/scripts/features/output-sync index 75d7e81..a7534cb 100644 --- a/tests/scripts/features/output-sync +++ b/tests/scripts/features/output-sync @@ -330,5 +330,12 @@ t1: ; -\@\$(MAKE) -f $m1 rmfiles($m1); +# Test $(error ...) functions in recipes + +run_make_test(q! +foo: $(OBJS) ; echo $(or $(filter %.o,$^),$(error fail)) +!, + '-O', "#MAKEFILE#:2: *** fail. Stop.\n", 512); + # This tells the test driver that the perl test script executed properly. 1; -- cgit v1.2.3