From 8594841ed349818bb8cb43a57b734a7945427c64 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 16 Feb 2017 11:12:29 +0100 Subject: test: Fix modules test for Windows Synchronize the fixture module to the non-Unix one and enable "/modules/test_filename". --- p11-kit/fixtures/system-modules/win32/one.module | 4 +++- p11-kit/test-modules.c | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/p11-kit/fixtures/system-modules/win32/one.module b/p11-kit/fixtures/system-modules/win32/one.module index d153ce5..129d983 100644 --- a/p11-kit/fixtures/system-modules/win32/one.module +++ b/p11-kit/fixtures/system-modules/win32/one.module @@ -1,4 +1,6 @@ module: mock-one.dll setting: system1 -# no order, use name \ No newline at end of file +trust-policy: yes +number: 18 +# no order, use name diff --git a/p11-kit/test-modules.c b/p11-kit/test-modules.c index 4bdf11a..a2e1430 100644 --- a/p11-kit/test-modules.c +++ b/p11-kit/test-modules.c @@ -222,9 +222,7 @@ test_filename (void) */ modules = initialize_and_get_modules (); -#ifndef _WIN32 - assert (lookup_module_with_filename (modules, "mock-four.so") != NULL); -#endif + assert (lookup_module_with_filename (modules, "mock-four" SHLEXT) != NULL); finalize_and_free_modules (modules); } -- cgit v1.1