diff options
Diffstat (limited to 'src/main/test_bzip2.c')
-rw-r--r-- | src/main/test_bzip2.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/test_bzip2.c b/src/main/test_bzip2.c index 1c4c9d3..f180e26 100644 --- a/src/main/test_bzip2.c +++ b/src/main/test_bzip2.c | |||
@@ -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; |