]> git.proxmox.com Git - cargo.git/commit
Test if reserved filenames are allowed in Windows
authorEric Holk <ericholk@microsoft.com>
Wed, 19 Jan 2022 19:53:06 +0000 (11:53 -0800)
committerEric Holk <ericholk@microsoft.com>
Wed, 3 Aug 2022 22:59:58 +0000 (15:59 -0700)
commit0adcc183bc7034a2cefbe79105c59beaf2937851
tree1283affe928c943b65a2d9a211a7a84a330a7700
parent4fd148c47e733770c537efac5220744945d572ef
Test if reserved filenames are allowed in Windows

Recent versions of Windows have removed the limitation on filenames like
`aux` or `con`. This change allows the `package::reserved_windows_name`
to still pass by first trying to create a file with a reserved name to
see if Windows supports it. If so, it skips the rest of the test.
Otherwise, we keep the same behavior as before.
tests/testsuite/package.rs