소스 검색

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@torproject.org>
David Goulet 8 년 전
부모
커밋
60c7da71ab
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/test/test_hs_common.c

+ 1 - 1
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");