mirror of
https://github.com/NixOS/nix.git
synced 2024-11-24 07:42:27 +00:00
Rename nul.nar because nul is a special name in Windows
For example, we can't even clone the repository on Windows! error: invalid path 'tests/functional/nul.nar' fatal: unable to checkout working tree
This commit is contained in:
parent
55fe4ee4f3
commit
190d0d661e
@ -134,7 +134,7 @@ rm -f "$TEST_ROOT/unicode-*"
|
||||
|
||||
# Unpacking a NAR with a NUL character in a file name should fail.
|
||||
rm -rf "$TEST_ROOT/out"
|
||||
expectStderr 1 nix-store --restore "$TEST_ROOT/out" < nul.nar | grepQuiet "NAR contains invalid file name 'f"
|
||||
expectStderr 1 nix-store --restore "$TEST_ROOT/out" < nul-character.nar | grepQuiet "NAR contains invalid file name 'f"
|
||||
|
||||
# Likewise for a '.' filename.
|
||||
rm -rf "$TEST_ROOT/out"
|
||||
|
Loading…
Reference in New Issue
Block a user