test_plugin_loading.c (libextractor-1.10) | : | test_plugin_loading.c (libextractor-1.11) | ||
---|---|---|---|---|
skipping to change at line 36 | skipping to change at line 36 | |||
#include "extractor.h" | #include "extractor.h" | |||
int | int | |||
main (int argc, char *argv[]) | main (int argc, char *argv[]) | |||
{ | { | |||
struct EXTRACTOR_PluginList *arg; | struct EXTRACTOR_PluginList *arg; | |||
/* 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)); | |||
/* do some load/unload tests */ | /* do some load/unload tests */ | |||
arg = EXTRACTOR_plugin_add (NULL, "test", NULL, | arg = EXTRACTOR_plugin_add (NULL, "test", NULL, | |||
EXTRACTOR_OPTION_DEFAULT_POLICY); | EXTRACTOR_OPTION_DEFAULT_POLICY); | |||
if (arg != EXTRACTOR_plugin_add (arg, "test", NULL, | if (arg != EXTRACTOR_plugin_add (arg, "test", NULL, | |||
EXTRACTOR_OPTION_DEFAULT_POLICY)) | EXTRACTOR_OPTION_DEFAULT_POLICY)) | |||
{ | { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |