aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-09-27 15:39:40 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-27 15:39:40 -0400
commite3859615429ec8d3939e21cd65fa07cc56bb5d0c (patch)
tree99112f8fa5bbf901f93551775c141178761d4b44 /src/test
parent24a45f54d270d86dde456cbb45640811d1ba26c2 (diff)
parentd073d7d4ebd461a1550595d0180f0367b67bcc16 (diff)
downloadtor-e3859615429ec8d3939e21cd65fa07cc56bb5d0c.tar.gz
tor-e3859615429ec8d3939e21cd65fa07cc56bb5d0c.zip
Merge remote branch 'public/bug1954' into maint-0.2.2
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_util.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index d90927b35f..a14d548b8e 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -1195,6 +1195,19 @@ test_util_listdir(void *ptr)
}
}
+#ifdef MS_WINDOWS
+static void
+test_util_load_win_lib(void *ptr)
+{
+ HANDLE h = load_windows_system_library("advapi32.dll");
+
+ tt_assert(h);
+ done:
+ if (h)
+ CloseHandle(h);
+}
+#endif
+
#define UTIL_LEGACY(name) \
{ #name, legacy_test_helper, 0, &legacy_setup, test_util_ ## name }
@@ -1218,6 +1231,9 @@ struct testcase_t util_tests[] = {
UTIL_TEST(find_str_at_start_of_line, 0),
UTIL_TEST(asprintf, 0),
UTIL_TEST(listdir, 0),
+#ifdef MS_WINDOWS
+ UTIL_TEST(load_win_lib, 0),
+#endif
END_OF_TESTCASES
};