commit 9dfb9eba8b2216462b90e2815da39bda7e2f6b18
parent 5d5ef5561d1927876d88ac02e17a2a3ae34520c8
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 3 Aug 2012 23:01:40 +0000
extend testcase to handle 2nd file case
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/main/test_ipc.c b/src/main/test_ipc.c
@@ -154,6 +154,12 @@ main (int argc, char *argv[])
return 1;
}
EXTRACTOR_extract (pl, NULL, buf, sizeof (buf), &process_replies, "main-cls");
+ if (0 == ret)
+ {
+ /* do it again... */
+ ret = 2;
+ EXTRACTOR_extract (pl, NULL, buf, sizeof (buf), &process_replies, "main-cls");
+ }
EXTRACTOR_plugin_remove_all (pl);
return ret;
}