mirror of
https://github.com/mirror/make.git
synced 2026-09-04 05:32:57 +08:00
* 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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user