]> git.ipfire.org Git - thirdparty/tor.git/commit
Test: fix shared random test checking bad errno
authorDavid Goulet <dgoulet@torproject.org>
Tue, 5 Jul 2016 17:54:37 +0000 (13:54 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 5 Jul 2016 18:00:06 +0000 (14:00 -0400)
commit245c10de074cb61ec75eaee152c51253678039cc
tree7f2aac661c5e208d8212f4709c8b291d1c5ecde8
parent5a047cdc5feebf33302cf28c0f6dc092df0e58a8
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>
src/test/test_shared_random.c