summaryrefslogtreecommitdiff
path: root/p11-kit
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2017-02-16 11:12:29 +0100
committerDaiki Ueno <ueno@gnu.org>2017-02-16 16:17:14 +0100
commit8594841ed349818bb8cb43a57b734a7945427c64 (patch)
tree3a19d8d143cbc99911fdf30f4e3376b92a370a69 /p11-kit
parent63b31ebfa1a978789cb31635fd95d00d7e398fa2 (diff)
test: Fix modules test for Windows
Synchronize the fixture module to the non-Unix one and enable "/modules/test_filename".
Diffstat (limited to 'p11-kit')
-rw-r--r--p11-kit/fixtures/system-modules/win32/one.module4
-rw-r--r--p11-kit/test-modules.c4
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);
}