From 2cecff28c7f20b569ad0ad6aec588e052431a97f Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Wed, 7 Feb 2024 10:06:55 -0700 Subject: [PATCH] Don't use a redirected subshell in tests/restricted.sh (fails on FreeBSD) --- tests/functional/restricted.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/restricted.sh b/tests/functional/restricted.sh index 00ee4ddc8..c13d42850 100755 --- a/tests/functional/restricted.sh +++ b/tests/functional/restricted.sh @@ -6,7 +6,7 @@ clearStoreIfPossible nix-instantiate --restrict-eval --eval -E '1 + 2' (! nix-instantiate --eval --restrict-eval ./restricted.nix) -(! nix-instantiate --eval --restrict-eval <(echo '1 + 2')) +TMPFILE=$(mktemp) && echo '1 + 2' >$TMPFILE && (! nix-instantiate --eval --restrict-eval $TMPFILE) mkdir -p "$TEST_ROOT/nix" cp ./simple.nix "$TEST_ROOT/nix"