diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-06-18 12:31:03 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-06-18 12:31:03 -0400 |
commit | 8a96a85d66328ba0088b9d9999771ff863cc0e60 (patch) | |
tree | 2250001ff217ad0ca200bccf306ade9483fb8f52 /src/test/test_dir.c | |
parent | 459c7c0e41f8c35c95e6012febb7e0456cce674a (diff) | |
download | tor-8a96a85d66328ba0088b9d9999771ff863cc0e60.tar.gz tor-8a96a85d66328ba0088b9d9999771ff863cc0e60.zip |
Check more return values in the unit tests
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r-- | src/test/test_dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 56ac3b34c7..6c2915d094 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -2317,9 +2317,9 @@ test_dir_v2_dir(void *arg) /* Make a directory so there's somewhere to store the thing */ #ifdef _WIN32 - mkdir(get_fname("cached-status")); + tt_int_op(mkdir(get_fname("cached-status")), ==, 0); #else - mkdir(get_fname("cached-status"), 0700); + tt_int_op(mkdir(get_fname("cached-status"), 0700), ==, 0); #endif v2 = generate_v2_networkstatus_opinion(); |