summaryrefslogtreecommitdiff
path: root/src/test/test_dir.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-06-30 18:26:44 -0400
committerNick Mathewson <nickm@torproject.org>2016-06-30 18:26:44 -0400
commit64ee7bcd0c8e154269145b626a7cd56b9d6264a1 (patch)
tree54f47e4a842038d6a47a281deba765ef3963a12e /src/test/test_dir.c
parent69e22e294ba903be420888db92440d2ae2ec48c1 (diff)
downloadtor-64ee7bcd0c8e154269145b626a7cd56b9d6264a1.tar.gz
tor-64ee7bcd0c8e154269145b626a7cd56b9d6264a1.zip
Make sure that our tests expect the windows path separator as needed
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r--src/test/test_dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index 9b6d5ff9e0..a97ac7cca0 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -4948,7 +4948,7 @@ test_dir_populate_dump_desc_fifo(void *data)
fname =
"unparseable-desc."
"DF0981323F3A70D02B55AB54B44B04F287D72F7B72F242E85C8CB0EDA8854A99";
- tor_asprintf(&expected_filename, "%s/%s", dirname, fname);
+ tor_asprintf(&expected_filename, "%s%s%s", dirname, PATH_SEPARATOR, fname);
file_content = tor_strdup("hanc culpam maiorem an illam dicam?");
file_content_len = strlen(file_content);
file_stat.st_mtime = 123456;
@@ -4964,7 +4964,7 @@ test_dir_populate_dump_desc_fifo(void *data)
fname =
"unparseable-desc."
"0786C7173447B7FB033FFCA2FC47C3CF71C30DD47CA8236D3FC7FF35853271C6";
- tor_asprintf(&expected_filename, "%s/%s", dirname, fname);
+ tor_asprintf(&expected_filename, "%s%s%s", dirname, PATH_SEPARATOR, fname);
file_content = tor_strdup("hanc culpam maiorem an illam dicam?");
file_content_len = strlen(file_content);
file_stat.st_mtime = 789012;