summaryrefslogtreecommitdiffstats
path: root/build/pymake/tests/unexport.submk
diff options
context:
space:
mode:
Diffstat (limited to 'build/pymake/tests/unexport.submk')
-rw-r--r--build/pymake/tests/unexport.submk15
1 files changed, 15 insertions, 0 deletions
diff --git a/build/pymake/tests/unexport.submk b/build/pymake/tests/unexport.submk
new file mode 100644
index 000000000..8db6163de
--- /dev/null
+++ b/build/pymake/tests/unexport.submk
@@ -0,0 +1,15 @@
+# -@- Mode: Makefile -@-
+
+unexport VAR1
+
+all:
+ env
+ test "$(VAR1)" = "val1"
+ test "$(origin VAR1)" = "environment"
+ test "$(VAR2)" = "" # VAR2
+ test "$(VAR3)" = "val3"
+ test "$(ENVVAR)" = ""
+ $(MAKE) -f $(TESTPATH)/unexport.submk subt
+
+subt:
+ test "$(VAR1)" = ""