diff options
author | David Goulet <dgoulet@torproject.org> | 2016-07-05 13:54:37 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-07-05 14:00:06 -0400 |
commit | 245c10de074cb61ec75eaee152c51253678039cc (patch) | |
tree | 7f2aac661c5e208d8212f4709c8b291d1c5ecde8 | |
parent | 5a047cdc5feebf33302cf28c0f6dc092df0e58a8 (diff) | |
download | tor-245c10de074cb61ec75eaee152c51253678039cc.tar.gz tor-245c10de074cb61ec75eaee152c51253678039cc.zip |
Test: fix shared random test checking bad errno
The test was checking for EISDIR which is a Linux-ism making other OSes
unhappy. Instead of checking for a negative specific errno value, just make
sure it's negative indicating an error. We don't need more for this test.
Signed-off-by: David Goulet <dgoulet@torproject.org>
-rw-r--r-- | src/test/test_shared_random.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c index 4f05e75783..d6787e4f45 100644 --- a/src/test/test_shared_random.c +++ b/src/test/test_shared_random.c @@ -638,11 +638,7 @@ test_state_load_from_disk(void *arg) /* Try to load the directory itself. Should fail. */ ret = disk_state_load_from_disk_impl(dir); -#ifdef _WIN32 - tt_int_op(ret, OP_EQ, -EACCES); -#else - tt_int_op(ret, OP_EQ, -EISDIR); -#endif + tt_int_op(ret, OP_LT, 0); /* State should be non-existent at this point. */ the_sr_state = get_sr_state(); |