tests: touch up tests on Windows

This fixes warnings and adds an additional invalid UTF-8 test that will
run on Windows.
This commit is contained in:
Andrew Gallant
2018-08-21 20:26:33 -04:00
parent 1529ce3341
commit 5b1ce8bdc2
2 changed files with 45 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ impl Dir {
/// Try to create a new file with the given name and contents in this
/// directory.
#[allow(dead_code)] // unused on Windows
pub fn try_create<P: AsRef<Path>>(
&self,
name: P,
@@ -222,6 +223,7 @@ impl Dir {
/// Creates a file symlink to the src with the given target name
/// in this directory.
#[cfg(windows)]
#[allow(dead_code)] // unused on Windows
pub fn link_file<S: AsRef<Path>, T: AsRef<Path>>(
&self,
src: S,