diff options
Diffstat (limited to 'src/main/test_ipc.c')
-rw-r--r-- | src/main/test_ipc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/test_ipc.c b/src/main/test_ipc.c index b0b09cb..4d03d84 100644 --- a/src/main/test_ipc.c +++ b/src/main/test_ipc.c | |||
@@ -63,6 +63,9 @@ process_replies (void *cls, | |||
63 | ret = 3; | 63 | ret = 3; |
64 | return 1; | 64 | return 1; |
65 | } | 65 | } |
66 | if (0 == strcmp (plugin_name, | ||
67 | "test2")) | ||
68 | return 0; /* ignore 'test2' plugins */ | ||
66 | if (0 != strcmp (plugin_name, | 69 | if (0 != strcmp (plugin_name, |
67 | "test")) | 70 | "test")) |
68 | { | 71 | { |
@@ -148,6 +151,8 @@ main (int argc, char *argv[]) | |||
148 | strerror (errno)); | 151 | strerror (errno)); |
149 | pl = EXTRACTOR_plugin_add_config (NULL, "test(test)", | 152 | pl = EXTRACTOR_plugin_add_config (NULL, "test(test)", |
150 | EXTRACTOR_OPTION_DEFAULT_POLICY); | 153 | EXTRACTOR_OPTION_DEFAULT_POLICY); |
154 | pl = EXTRACTOR_plugin_add_config (pl, "test2(test2)", | ||
155 | EXTRACTOR_OPTION_DEFAULT_POLICY); | ||
151 | if (NULL == pl) | 156 | if (NULL == pl) |
152 | { | 157 | { |
153 | fprintf (stderr, "failed to load test plugin\n"); | 158 | fprintf (stderr, "failed to load test plugin\n"); |