summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();