test/make/TestMakeBase.gmk
changeset 37030 e047c2f3f510
parent 33054 bcb9f5ea5761
child 41260 4f71f07b30d1
--- a/test/make/TestMakeBase.gmk	Wed Apr 13 00:00:37 2016 -0700
+++ b/test/make/TestMakeBase.gmk	Wed Apr 13 18:11:29 2016 +0200
@@ -254,4 +254,14 @@
       but was $(call sequence, 5, 15))
 endif
 
+################################################################################
+# Test that PathList is safe when called multiple nested times.
+
+PATHLIST_INPUT := foo bar baz
+
+$(eval $(call assert-equals, \
+    $(call PathList, $(call PathList, $(PATHLIST_INPUT))), \
+    $(call PathList, $(PATHLIST_INPUT)), \
+    PathList call not safe for calling twice))
+
 all: $(TEST_TARGETS)