Merge pull request #11794 from nix-windows/windows-functional/nul-character

Rename nul.nar because nul is a special name in Windows
This commit is contained in:
John Ericson 2024-11-03 20:45:35 -05:00 committed by GitHub
commit 30f4f21887
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ rm -f "$TEST_ROOT/unicode-*"
# Unpacking a NAR with a NUL character in a file name should fail. # Unpacking a NAR with a NUL character in a file name should fail.
rm -rf "$TEST_ROOT/out" 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. # Likewise for a '.' filename.
rm -rf "$TEST_ROOT/out" rm -rf "$TEST_ROOT/out"