From: Nick Mathewson Date: Fri, 1 Jul 2016 20:23:06 +0000 (-0400) Subject: Windows open() returns eacces when eisdir would be sane X-Git-Tag: tor-0.2.9.1-alpha~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa05dea5fff43c6185b0e6c17d7468ae9de6fce0;p=thirdparty%2Ftor.git Windows open() returns eacces when eisdir would be sane --- 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();