testscript/testdata/testscript_duplicate_name.txt
raw| 1 | # Check that RequireUniqueNames works; |
| 2 | # it should reject txtar archives with duplicate names as defined by the host system. |
| 3 | |
| 4 | unquote scripts-normalized/testscript.txt |
| 5 | |
| 6 | testscript scripts-normalized |
| 7 | ! testscript -unique-names scripts-normalized |
| 8 | stdout '.* would overwrite .* \(because RequireUniqueNames is enabled\)' |
| 9 | |
| 10 | -- scripts-normalized/testscript.txt -- |
| 11 | >-- file -- |
| 12 | >-- dir/../file -- |