From 58fc420b365b8f8d6faaa332ab3ba4e97ad584e0 Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <e.dolstra@tudelft.nl>
Date: Fri, 17 Feb 2006 17:05:34 +0000
Subject: [PATCH] * And another test.

---
 tests/user-envs.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/user-envs.sh b/tests/user-envs.sh
index 4f94690d8..bd14f5108 100644
--- a/tests/user-envs.sh
+++ b/tests/user-envs.sh
@@ -85,6 +85,11 @@ $nixenv -p $profiles/test -f ./user-envs.nix -i foo
 test "$($nixenv -p $profiles/test -q | grep foo- | wc)" -eq 1
 $nixenv -p $profiles/test -q | grep -q foo-2.0
 
+# On the other hand, this should install both (and should fail due to
+# a collision).
+$nixenv -p $profiles/test -f ./user-envs.nix -e '*'
+if $nixenv -p $profiles/test -f ./user-envs.nix -i foo-1.0 foo-2.0; then false; fi
+
 # Installing "*" should install one foo and one bar.
 $nixenv -p $profiles/test -f ./user-envs.nix -e '*'
 $nixenv -p $profiles/test -f ./user-envs.nix -i '*'
-- 
GitLab