diff options
Diffstat (limited to 'src/main/test_plugin_load_multi.c')
-rw-r--r-- | src/main/test_plugin_load_multi.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/main/test_plugin_load_multi.c b/src/main/test_plugin_load_multi.c index b7958f2..6b30390 100644 --- a/src/main/test_plugin_load_multi.c +++ b/src/main/test_plugin_load_multi.c | |||
@@ -37,15 +37,15 @@ testLoadPlugins () | |||
37 | el1 = EXTRACTOR_plugin_add_defaults (EXTRACTOR_OPTION_DEFAULT_POLICY); | 37 | el1 = EXTRACTOR_plugin_add_defaults (EXTRACTOR_OPTION_DEFAULT_POLICY); |
38 | el2 = EXTRACTOR_plugin_add_defaults (EXTRACTOR_OPTION_DEFAULT_POLICY); | 38 | el2 = EXTRACTOR_plugin_add_defaults (EXTRACTOR_OPTION_DEFAULT_POLICY); |
39 | if ((NULL == el1) || (NULL == el2)) | 39 | if ((NULL == el1) || (NULL == el2)) |
40 | { | 40 | { |
41 | fprintf (stderr, | 41 | fprintf (stderr, |
42 | "Failed to load default plugins!\n"); | 42 | "Failed to load default plugins!\n"); |
43 | if (NULL != el1) | 43 | if (NULL != el1) |
44 | EXTRACTOR_plugin_remove_all (el1); | 44 | EXTRACTOR_plugin_remove_all (el1); |
45 | if (NULL != el2) | 45 | if (NULL != el2) |
46 | EXTRACTOR_plugin_remove_all (el2); | 46 | EXTRACTOR_plugin_remove_all (el2); |
47 | return 1; | 47 | return 1; |
48 | } | 48 | } |
49 | EXTRACTOR_plugin_remove_all (el1); | 49 | EXTRACTOR_plugin_remove_all (el1); |
50 | EXTRACTOR_plugin_remove_all (el2); | 50 | EXTRACTOR_plugin_remove_all (el2); |
51 | return 0; | 51 | return 0; |
@@ -57,16 +57,17 @@ main (int argc, char *argv[]) | |||
57 | { | 57 | { |
58 | int ret = 0; | 58 | int ret = 0; |
59 | 59 | ||
60 | /* change environment to find 'extractor_test' plugin which is | 60 | /* change environment to find 'extractor_test' plugin which is |
61 | not installed but should be in the current directory (or .libs) | 61 | not installed but should be in the current directory (or .libs) |
62 | on 'make check' */ | 62 | on 'make check' */ |
63 | if (0 != putenv ("LIBEXTRACTOR_PREFIX=." PATH_SEPARATOR_STR ".libs/")) | 63 | if (0 != putenv ("LIBEXTRACTOR_PREFIX=." PATH_SEPARATOR_STR ".libs/")) |
64 | fprintf (stderr, | 64 | fprintf (stderr, |
65 | "Failed to update my environment, plugin loading may fail: %s\n", | 65 | "Failed to update my environment, plugin loading may fail: %s\n", |
66 | strerror (errno)); | 66 | strerror (errno)); |
67 | ret += testLoadPlugins (); | 67 | ret += testLoadPlugins (); |
68 | ret += testLoadPlugins (); | 68 | ret += testLoadPlugins (); |
69 | return ret; | 69 | return ret; |
70 | } | 70 | } |
71 | 71 | ||
72 | |||
72 | /* end of test_plugin_load_multi.c */ | 73 | /* end of test_plugin_load_multi.c */ |