mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Try to fix windows config/include_path_syntax test
It was trying to do %include "foo\", which won't work. It has to be %include "foo\\".
This commit is contained in:
parent
3c6d5e10a0
commit
3628efe29c
@ -5172,11 +5172,17 @@ test_config_include_path_syntax(void *data)
|
|||||||
tt_int_op(mkdir(dir, 0700), OP_EQ, 0);
|
tt_int_op(mkdir(dir, 0700), OP_EQ, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define ESCAPED_PATH_SEPARATOR "\\" PATH_SEPARATOR
|
||||||
|
#else
|
||||||
|
#define ESCAPED_PATH_SEPARATOR PATH_SEPARATOR
|
||||||
|
#endif
|
||||||
|
|
||||||
char torrc_contents[1000];
|
char torrc_contents[1000];
|
||||||
tor_snprintf(torrc_contents, sizeof(torrc_contents),
|
tor_snprintf(torrc_contents, sizeof(torrc_contents),
|
||||||
"%%include \"%s\"\n"
|
"%%include \"%s\"\n"
|
||||||
"%%include %s"PATH_SEPARATOR"\n"
|
"%%include %s"PATH_SEPARATOR"\n"
|
||||||
"%%include \"%s"PATH_SEPARATOR"\"\n",
|
"%%include \"%s"ESCAPED_PATH_SEPARATOR"\"\n",
|
||||||
dir, dir, dir);
|
dir, dir, dir);
|
||||||
|
|
||||||
int include_used;
|
int include_used;
|
||||||
|
Loading…
Reference in New Issue
Block a user