test_file.c (libextractor-1.10) | : | test_file.c (libextractor-1.11) | ||
---|---|---|---|---|
skipping to change at line 137 | skipping to change at line 137 | |||
* @return 0 on success | * @return 0 on success | |||
*/ | */ | |||
int | int | |||
main (int argc, char *argv[]) | main (int argc, char *argv[]) | |||
{ | { | |||
struct EXTRACTOR_PluginList *pl; | struct EXTRACTOR_PluginList *pl; | |||
/* change environment to find 'extractor_test' plugin which is | /* change environment to find 'extractor_test' plugin which is | |||
not installed but should be in the current directory (or .libs) | not installed but should be in the current directory (or .libs) | |||
on 'make check' */ | on 'make check' */ | |||
if (0 != putenv ("LIBEXTRACTOR_PREFIX=." PATH_SEPARATOR_STR ".libs/")) | if (0 != putenv ("LIBEXTRACTOR_PREFIX=.:.libs/")) | |||
fprintf (stderr, | fprintf (stderr, | |||
"Failed to update my environment, plugin loading may fail: %s\n", | "Failed to update my environment, plugin loading may fail: %s\n", | |||
strerror (errno)); | strerror (errno)); | |||
pl = EXTRACTOR_plugin_add_config (NULL, "test(test)", | pl = EXTRACTOR_plugin_add_config (NULL, "test(test)", | |||
EXTRACTOR_OPTION_DEFAULT_POLICY); | EXTRACTOR_OPTION_DEFAULT_POLICY); | |||
if (NULL == pl) | if (NULL == pl) | |||
{ | { | |||
fprintf (stderr, "failed to load test plugin\n"); | fprintf (stderr, "failed to load test plugin\n"); | |||
return 1; | return 1; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |