Eelco Dolstra
2e1cb495c1
Typo
...
(cherry picked from commit 4cfa59fdb3
)
2024-09-10 09:51:50 +02:00
Eelco Dolstra
e25410c788
Test that deserializing regular files / symlinks is exclusive
...
(cherry picked from commit 52ba3cc5ea
)
2024-09-10 09:51:50 +02:00
Eelco Dolstra
25510ba66f
RestoreSink::createDirectory(): Use append()
...
On macOS, `mkdir("x/')` behaves differently than `mkdir("x")` if `x` is
a dangling symlink (the formed succeed while the latter fails). So make
sure we always strip the trailing slash.
(cherry picked from commit 9fcb588dd8
)
2024-09-10 09:51:50 +02:00
Eelco Dolstra
d9b60b3902
Fix test on macOS
...
(cherry picked from commit 21dcbd7e83
)
2024-09-10 09:51:50 +02:00
Eelco Dolstra
a041688133
Test that deserializing NARs with names with equal Unicode normal forms fails on macOS
...
The test is based on the one by @puckipedia but with the file names
swapped to make them sorted.
(cherry picked from commit 7a765a6aaf
)
2024-09-10 09:51:50 +02:00
Eelco Dolstra
1288970496
Detect NAR directory entries that collide with another path after case-hacking
...
The test was made by @puckipedia.
(cherry picked from commit 3557587381
)
2024-09-10 09:51:50 +02:00
Eelco Dolstra
0cfc9bf133
More tests
...
(cherry picked from commit 77c090cdbd
)
2024-09-10 09:51:50 +02:00
Eelco Dolstra
f160d3ac68
Test that nix-store --restore fails if the output already exists
...
This restores the behaviour from before the std::filesystem
refactorings.
(cherry picked from commit da1ad28912
)
2024-09-10 09:51:50 +02:00
Eelco Dolstra
6187ee468f
Add test case for NARs with duplicate directory entries
...
This test was made by @puckipedia.
(cherry picked from commit 83d5b32803
)
2024-09-10 09:51:50 +02:00