aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-okay-getenv.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/lang/eval-okay-getenv.nix')
-rw-r--r--tests/functional/lang/eval-okay-getenv.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/functional/lang/eval-okay-getenv.nix b/tests/functional/lang/eval-okay-getenv.nix
new file mode 100644
index 000000000..4cfec5f55
--- /dev/null
+++ b/tests/functional/lang/eval-okay-getenv.nix
@@ -0,0 +1 @@
+builtins.getEnv "TEST_VAR" + (if builtins.getEnv "NO_SUCH_VAR" == "" then "bar" else "bla")