xref: /openbsd/regress/lib/libpthread/system/system.c (revision 404b540a)
1 /*	$OpenBSD: system.c,v 1.2 2001/11/11 19:57:43 marc Exp $ */
2 /*
3  *	Placed in the PUBLIC DOMAIN
4  */
5 
6 /*
7  * system checks the threads system interface and that waitpid/wait4
8  * works correctly.
9  */
10 
11 #include <stdlib.h>
12 #include "test.h"
13 
14 int
15 main(int argc, char **argv)
16 {
17     ASSERT(system("ls") == 0);
18     SUCCEED;
19 }
20