From 614f576c47f2afaff77752d43ef7eb76dfb1131e Mon Sep 17 00:00:00 2001 From: "J.W" Date: Thu, 26 Oct 2017 15:18:06 +0800 Subject: [PATCH] Add TODOs and FIXMEs about Windows --- src/exec/input.rs | 2 ++ tests/tests.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/exec/input.rs b/src/exec/input.rs index 59d1a99..1fec91d 100644 --- a/src/exec/input.rs +++ b/src/exec/input.rs @@ -36,6 +36,7 @@ impl<'a> Input<'a> { } } + // FIXME: On Windows, should return what for C:file.txt D:file.txt and \\server\share ? if index != 0 { self.data = &self.data[index + 1..] } @@ -78,6 +79,7 @@ impl<'a> Input<'a> { } } + // FIXME: On Windows, return what for C:file.txt D:file.txt and \\server\share ? self.data = if !has_dir { "." } else if index == 0 { diff --git a/tests/tests.rs b/tests/tests.rs index e96b381..29279c7 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -603,6 +603,7 @@ fn test_exec() { let abs_path = get_absolute_root_path(&te); + // TODO Windows tests: D:file.txt \file.txt \\server\share\file.txt ... if !cfg!(windows) { te.assert_output( &["--absolute-path", "foo", "--exec", "echo"],