aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/unit1604.c
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2016-02-09 03:28:58 -0500
committerJay Satiro <raysatiro@yahoo.com>2016-02-09 03:28:58 -0500
commit4fc80f3e75c1e3ca2c3ff12ca9f9885720d5ce99 (patch)
treef56d79cc9a3b8658b5f04ed7c0c53dd1fd985e16 /tests/unit/unit1604.c
parent6b64d735cd7ec453fabbc07a1913bdb8e6ec0a65 (diff)
tool_doswin: Support for literal path prefix \\?\
For example something like --output \\?\C:\foo
Diffstat (limited to 'tests/unit/unit1604.c')
-rw-r--r--tests/unit/unit1604.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/unit/unit1604.c b/tests/unit/unit1604.c
index b48785902..c61f010dc 100644
--- a/tests/unit/unit1604.c
+++ b/tests/unit/unit1604.c
@@ -110,6 +110,14 @@ UNITTEST_START
{ "f:/foo", SANITIZE_ALLOW_PATH,
"f:/foo", SANITIZE_ERR_OK
},
+#ifndef MSDOS
+ { "\\\\?\\C:\\foo", SANITIZE_ALLOW_PATH,
+ "\\\\?\\C:\\foo", SANITIZE_ERR_OK
+ },
+ { "\\\\?\\C:\\foo", 0,
+ "____C__foo", SANITIZE_ERR_OK
+ },
+#endif
{ "foo:bar", 0,
"foo_bar", SANITIZE_ERR_OK
},
@@ -164,6 +172,17 @@ UNITTEST_START
{ "com1:\\com1", SANITIZE_ALLOW_RESERVED,
"com1__com1", SANITIZE_ERR_OK
},
+#ifndef MSDOS
+ { "\\com1", SANITIZE_ALLOW_PATH,
+ "\\_com1", SANITIZE_ERR_OK
+ },
+ { "\\\\com1", SANITIZE_ALLOW_PATH,
+ "\\\\com1", SANITIZE_ERR_OK
+ },
+ { "\\\\?\\C:\\com1", SANITIZE_ALLOW_PATH,
+ "\\\\?\\C:\\com1", SANITIZE_ERR_OK
+ },
+#endif
{ "CoM1", 0,
"_CoM1", SANITIZE_ERR_OK
},