about summary refs log tree commit diff
path: root/nixos/tests/nix-ld.nix
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2023-06-14 18:35:21 +0200
committerJörg Thalheim <joerg@thalheim.io>2023-06-15 09:47:25 +0200
commitf3ae11b096bfd522de2c1afb69a4e53b4a71d188 (patch)
treeb6f8a31fb5c872aa67aafee09d831f7939cd10ff /nixos/tests/nix-ld.nix
parentc6e8899d9eed425dc1bdcde7a008f30e2947d814 (diff)
nixos/nix-ld: also test NIX_LD fallback
Diffstat (limited to 'nixos/tests/nix-ld.nix')
-rw-r--r--nixos/tests/nix-ld.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/tests/nix-ld.nix b/nixos/tests/nix-ld.nix
index 8733f5b0c3978..c62c0437e04ec 100644
--- a/nixos/tests/nix-ld.nix
+++ b/nixos/tests/nix-ld.nix
@@ -13,5 +13,8 @@ import ./make-test-python.nix ({ lib, pkgs, ...} :
   testScript = ''
     start_all()
     machine.succeed("hello")
+
+    # test fallback if NIX_LD is not set
+    machine.succeed("unset NIX_LD; unset NIX_LD_LIBRARY_PATH; hello")
  '';
 })