summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-07-01 16:23:06 -0400
committerNick Mathewson <nickm@torproject.org>2016-07-01 16:23:06 -0400
commitaa05dea5fff43c6185b0e6c17d7468ae9de6fce0 (patch)
tree2bc734c09f114b0f2de075e6016f48a318f85311 /src
parent1597c423844de4da82cde58c9162d05ff5b28b40 (diff)
downloadtor-aa05dea5fff43c6185b0e6c17d7468ae9de6fce0.tar.gz
tor-aa05dea5fff43c6185b0e6c17d7468ae9de6fce0.zip
Windows open() returns eacces when eisdir would be sane
Diffstat (limited to 'src')
-rw-r--r--src/test/test_shared_random.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c
index e5a7d2195f..95f819819e 100644
--- a/src/test/test_shared_random.c
+++ b/src/test/test_shared_random.c
@@ -638,7 +638,11 @@ test_state_load_from_disk(void *arg)
/* Try to load the directory itself. Should fail. */
ret = disk_state_load_from_disk_impl(dir);
- tt_assert(ret == -EISDIR);
+#ifdef _WIN32
+ tt_int_op(ret, OP_EQ, -EACCES);
+#else
+ tt_int_op(ret, OP_EQ, -EISDIR);
+#endif
/* State should be non-existent at this point. */
the_sr_state = get_sr_state();