aboutsummaryrefslogtreecommitdiff
path: root/src/main/test_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/test_file.c')
-rw-r--r--src/main/test_file.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/test_file.c b/src/main/test_file.c
index 83681f7..f731e7d 100644
--- a/src/main/test_file.c
+++ b/src/main/test_file.c
@@ -143,10 +143,18 @@ main (int argc, char *argv[])
143 EXTRACTOR_OPTION_DEFAULT_POLICY); 143 EXTRACTOR_OPTION_DEFAULT_POLICY);
144 if (NULL == pl) 144 if (NULL == pl)
145 { 145 {
146 fprintf (stderr, "failed to load test plugin\n"); 146 fprintf (stderr,
147 "failed to load test plugin\n");
147 return 1; 148 return 1;
148 } 149 }
149 EXTRACTOR_extract (pl, "test_file.dat", NULL, 0, &process_replies, 150 if (0 != access ("test_file.dat",
151 R_OK))
152 return 77;
153 EXTRACTOR_extract (pl,
154 "test_file.dat",
155 NULL,
156 0,
157 &process_replies,
150 "main-cls"); 158 "main-cls");
151 EXTRACTOR_plugin_remove_all (pl); 159 EXTRACTOR_plugin_remove_all (pl);
152 return ret; 160 return ret;