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