< prev index next >

test/make/TestMakeBase.gmk

Print this page

        

@@ -252,6 +252,16 @@
 ifneq ($(call sequence, 5, 15), 5 6 7 8 9 10 11 12 13 14 15)
   $(error Sequence 5, 15 should be "5 6 7 8 9 10 11 12 13 14 15", \
       but was $(call sequence, 5, 15))
 endif
 
+################################################################################
+# Test that PathList is safe when called multiple 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)
< prev index next >