summaryrefslogtreecommitdiff
path: root/tests/scripts/features/double_colon
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/features/double_colon')
-rw-r--r--tests/scripts/features/double_colon9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/scripts/features/double_colon b/tests/scripts/features/double_colon
index 75060c5..e0e53f0 100644
--- a/tests/scripts/features/double_colon
+++ b/tests/scripts/features/double_colon
@@ -36,6 +36,9 @@ two: ; @echo two
f1.h f2.h: ; @echo $@
+d :: ; @echo ok
+d :: d ; @echo oops
+
EOF
close(MAKEFILE);
@@ -95,6 +98,12 @@ $answer = "f2.h\nfoo SECOND\n";
$answer = "f2.h\nfoo SECOND\n";
&compare_output($answer, &get_logfile(1));
+# TEST 8: Test circular dependency check; PR/1671
+
+&run_make_with_options($makefile, "d", &get_logfile, 0);
+$answer = "ok\n$make_name: Circular d <- d dependency dropped.\noops\n";
+&compare_output($answer, &get_logfile(1));
+
# TEST 8: I don't grok why this is different than the above, but it is...
#
# Hmm... further testing indicates this might be timing-dependent?