[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] test: Fix hs common test for Windows



commit 60c7da71ab3435e2022dd4f62ac67c09da94db89
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date:   Fri Aug 11 14:42:20 2017 -0400

    test: Fix hs common test for Windows
    
    Use the PATH_SEPARATOR for a path comparaison so it works with Windows as
    well.
    
    Partially fix #23223
    
    Signed-off-by: David Goulet <dgoulet@xxxxxxxxxxxxxx>
---
 src/test/test_hs_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/test_hs_common.c b/src/test/test_hs_common.c
index b8b7ab00d..fce71ef2d 100644
--- a/src/test/test_hs_common.c
+++ b/src/test/test_hs_common.c
@@ -78,7 +78,7 @@ static int
 mock_write_str_to_file(const char *path, const char *str, int bin)
 {
   (void)bin;
-  tt_str_op(path, OP_EQ, "/double/five/squared");
+  tt_str_op(path, OP_EQ, "/double/five"PATH_SEPARATOR"squared");
   tt_str_op(str, OP_EQ,
            "ijbeeqscijbeeqscijbeeqscijbeeqscijbeeqscijbeeqscijbezhid.onion\n");
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits