about summary refs log tree commit diff
path: root/tests/multiple-outputs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/multiple-outputs.nix')
-rw-r--r--tests/multiple-outputs.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/multiple-outputs.nix b/tests/multiple-outputs.nix
index 6add7dd6f997..4a9010d1868e 100644
--- a/tests/multiple-outputs.nix
+++ b/tests/multiple-outputs.nix
@@ -9,8 +9,9 @@ rec {
       ''
         mkdir $first $second
         test -z $all
-        echo "second" > $first/file
-        echo "first" > $second/file
+        echo "first" > $first/file
+        echo "second" > $second/file
+        ln -s $first $second/link
       '';
     helloString = "Hello, world!";
   };
@@ -26,8 +27,8 @@ rec {
         mkdir $out
         test "$firstOutput $secondOutput" = "$allOutputs"
         test "$defaultOutput" = "$firstOutput"
-        test "$(cat $firstOutput/file)" = "second"
-        test "$(cat $secondOutput/file)" = "first"
+        test "$(cat $firstOutput/file)" = "first"
+        test "$(cat $secondOutput/file)" = "second"
         echo "success" > $out/file
       '';
   };