diff options
Diffstat (limited to 'src/main/test_bzip2.c')
-rw-r--r-- | src/main/test_bzip2.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/test_bzip2.c b/src/main/test_bzip2.c index 598e913..f180e26 100644 --- a/src/main/test_bzip2.c +++ b/src/main/test_bzip2.c | |||
@@ -135,7 +135,7 @@ main (int argc, char *argv[]) | |||
135 | /* change environment to find 'extractor_test' plugin which is | 135 | /* change environment to find 'extractor_test' plugin which is |
136 | not installed but should be in the current directory (or .libs) | 136 | not installed but should be in the current directory (or .libs) |
137 | on 'make check' */ | 137 | on 'make check' */ |
138 | if (0 != putenv ("LIBEXTRACTOR_PREFIX=." PATH_SEPARATOR_STR ".libs/")) | 138 | if (0 != putenv ("LIBEXTRACTOR_PREFIX=.:.libs/")) |
139 | fprintf (stderr, | 139 | fprintf (stderr, |
140 | "Failed to update my environment, plugin loading may fail: %s\n", | 140 | "Failed to update my environment, plugin loading may fail: %s\n", |
141 | strerror (errno)); | 141 | strerror (errno)); |
@@ -146,7 +146,14 @@ main (int argc, char *argv[]) | |||
146 | fprintf (stderr, "failed to load test plugin\n"); | 146 | fprintf (stderr, "failed to load test plugin\n"); |
147 | return 1; | 147 | return 1; |
148 | } | 148 | } |
149 | EXTRACTOR_extract (pl, "test_file.dat.bz2", NULL, 0, &process_replies, | 149 | if (0 != access ("test_file.dat.bz2", |
150 | R_OK)) | ||
151 | return 77; | ||
152 | EXTRACTOR_extract (pl, | ||
153 | "test_file.dat.bz2", | ||
154 | NULL, | ||
155 | 0, | ||
156 | &process_replies, | ||
150 | "main-cls"); | 157 | "main-cls"); |
151 | EXTRACTOR_plugin_remove_all (pl); | 158 | EXTRACTOR_plugin_remove_all (pl); |
152 | return ret; | 159 | return ret; |