summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2023-04-30 09:19:06 -0400
committerPaul Smith <psmith@gnu.org>2023-04-30 09:40:50 -0400
commit0e06c7588961bb04c7bb01606356941baf1cb146 (patch)
tree3d4c4a72c2d9df6ab6c4d757428d38de80b9206a
parent5340a3d5d1c7d7c4d5b0424790ec312e1c1bc3d3 (diff)
downloadmake-git-0e06c7588961bb04c7bb01606356941baf1cb146.tar.gz
* tests/scripts/features/double_colon: Test parallel double-colon rules
Original test proposed by Dmitry Goncharov <dgoncharov@users.sf.net>
-rw-r--r--tests/scripts/features/double_colon11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/scripts/features/double_colon b/tests/scripts/features/double_colon
index 7b55440b..4631c355 100644
--- a/tests/scripts/features/double_colon
+++ b/tests/scripts/features/double_colon
@@ -223,7 +223,16 @@ unrelated: hello.x
!,
'', "#MAKE#: *** No rule to make target 'hello.x', needed by 'hello.z'. Stop.\n", 512);
-unlink('hello.z');
+# SV 64016.
+# Test that update_goal_chain moves to the next target while the current
+# target is being built: hello.x recipe is started and update_goal_chain
+# begins to update bye.x.
+
+run_make_test(q!
+hello.x::; @#HELPER# -q wait bye.x out $@
+bye.x::; @#HELPER# sleep 1 file $@
+!,
+ '-j2 hello.x bye.x', "sleep 1\nfile bye.x\nhello.x");
# This tells the test driver that the perl test script executed properly.