alsa.audio: add debug logs
[AROS.git] / test / clib / execl2.c
blob6559f7d5f3e426a3476d71f374ba794cc75dcf1f
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include <unistd.h>
9 #include <fcntl.h>
11 #include "test.h"
13 int main(void)
15 int fd;
16 FILE *f;
18 fd = open("execl2_out", O_RDWR|O_CREAT, 00700);
19 TEST(fd != -1);
21 f = fdopen(fd, "w");
22 TEST(f != NULL);
24 fputs("OK\n", f);
25 fflush(f);
27 char arg[10];
28 sprintf(arg, "%d", fd);
29 execl("execl2_slave", "execl2_slave", arg, NULL);
30 TEST( 0 ); /* Should not be reached */
32 exit(20);
35 void cleanup(void)
37 /* NOP */
38 return;