commit aa05dea5fff43c6185b0e6c17d7468ae9de6fce0 Author: Nick Mathewson nickm@torproject.org Date: Fri Jul 1 16:23:06 2016 -0400
Windows open() returns eacces when eisdir would be sane --- src/test/test_shared_random.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c index e5a7d21..95f8198 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();
tor-commits@lists.torproject.org