grub2: bring back build of aros-side grub2 tools
[AROS.git] / test / clib / execl2_slave.c
blobba8a5fb632737f0bb8ad6f34094a7376e1ca6bd1
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 <string.h>
10 #include "test.h"
12 int main(int argc, const char *argv[])
14 int fd;
15 FILE *f;
17 sscanf(argv[1], "%d", &fd);
18 f = fdopen(fd, "r");
19 TEST(f != NULL);
21 char line[10];
22 fseek(f, 0, SEEK_SET);
23 TEST(fgets(line, 10, f) != NULL);
25 TEST(strcmp(line, "OK\n") == 0);
27 return 0;
30 void cleanup(void)
32 /* NOP */
33 return;