From d4c5661a695b5fc4a0126a4583e30ef70aea54ac Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 2 Apr 2012 07:34:25 +0200 Subject: Build some test modules for testing main p11-kit functionality * And put together a test for duplicate modules --- tests/conf-test.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/conf-test.c') diff --git a/tests/conf-test.c b/tests/conf-test.c index df44fae..2934c0f 100644 --- a/tests/conf-test.c +++ b/tests/conf-test.c @@ -262,17 +262,17 @@ test_load_modules_merge (CuTest *tc) config = _p11_hash_get (configs, "one"); CuAssertPtrNotNull (tc, config); - CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "/path/to/module-one"); + CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "mock-one.la"); CuAssertStrEquals (tc, _p11_hash_get (config, "setting"), "user1"); config = _p11_hash_get (configs, "two"); CuAssertPtrNotNull (tc, config); - CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "/path/to/module-two"); + CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "mock-two.la"); CuAssertStrEquals (tc, _p11_hash_get (config, "setting"), "system2"); config = _p11_hash_get (configs, "three"); CuAssertPtrNotNull (tc, config); - CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "/path/to/module-three"); + CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "mock-three.la"); CuAssertStrEquals (tc, _p11_hash_get (config, "setting"), "user3"); _p11_hash_free (configs); @@ -294,12 +294,12 @@ test_load_modules_user_none (CuTest *tc) config = _p11_hash_get (configs, "one"); CuAssertPtrNotNull (tc, config); - CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "/path/to/module-one"); + CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "mock-one.la"); CuAssertStrEquals (tc, _p11_hash_get (config, "setting"), "system1"); config = _p11_hash_get (configs, "two"); CuAssertPtrNotNull (tc, config); - CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "/path/to/module-two"); + CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "mock-two.la"); CuAssertStrEquals (tc, _p11_hash_get (config, "setting"), "system2"); config = _p11_hash_get (configs, "three"); @@ -332,7 +332,7 @@ test_load_modules_user_only (CuTest *tc) config = _p11_hash_get (configs, "three"); CuAssertPtrNotNull (tc, config); - CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "/path/to/module-three"); + CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "mock-three.la"); CuAssertStrEquals (tc, _p11_hash_get (config, "setting"), "user3"); _p11_hash_free (configs); @@ -354,12 +354,12 @@ test_load_modules_no_user (CuTest *tc) config = _p11_hash_get (configs, "one"); CuAssertPtrNotNull (tc, config); - CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "/path/to/module-one"); + CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "mock-one.la"); CuAssertStrEquals (tc, _p11_hash_get (config, "setting"), "system1"); config = _p11_hash_get (configs, "two"); CuAssertPtrNotNull (tc, config); - CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "/path/to/module-two"); + CuAssertStrEquals (tc, _p11_hash_get (config, "module"), "mock-two.la"); CuAssertStrEquals (tc, _p11_hash_get (config, "setting"), "system2"); config = _p11_hash_get (configs, "three"); -- cgit v1.1