]> git.sur5r.net Git - cc65/blob - testcode/lib/exec-test2.c
clock-test.c: remove "static" optimization
[cc65] / testcode / lib / exec-test2.c
1 /*
2 ** These programs test cc65's exec() program-chaining function.
3 ** exec-test1 runs exec-test2 -- that tests the loading and starting of another
4 ** program.  Then, exec-test2 runs arg-test -- that tests command-line argument
5 ** passing.
6 **
7 ** 2013-08-24, Greg King
8 */
9
10 #include <unistd.h>
11 #include <string.h>
12 #include <errno.h>
13 #include <conio.h>
14
15 int main (void) {
16     cprintf ("\nExec-test #2 -- launching arg-test...\r\n\n");
17
18     exec ("arg-test", "arg1 arg2 \"\" arg4");
19
20     cprintf ("\nFailed to find arg-test:\r\n %s.\r\n", _stroserror (_oserror));
21     cgetc ();
22     return _oserror;
23 }