diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-08-05 14:33:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-08-05 14:33:32 +0000 |
commit | 8ac48d575a488bb8e20494b285b611656dc97787 (patch) | |
tree | 6bddf684fb652bded68ce749b43b497229f5a396 /src/main/test_ipc.c | |
parent | 5c77572e83847f332128e63fedeeb935d1e1b825 (diff) | |
download | libextractor-8ac48d575a488bb8e20494b285b611656dc97787.tar.gz libextractor-8ac48d575a488bb8e20494b285b611656dc97787.zip |
expanding IPC test to cover running with multiple plugins
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"); |