1 /* $OpenBSD: system.c,v 1.1 2001/11/09 00:13:32 marc Exp $ */ 2 /* 3 * Copyright (c) 2001 Marco S. Hyman 4 * 5 * Permission to copy all or part of this material with or without 6 * modification for any purpose is granted provided that the above 7 * copyright notice and this paragraph are duplicated in all copies. 8 * 9 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 11 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12 */ 13 14 /* 15 * system checks the threads system interface and that waitpid/wait4 16 * works correctly. 17 */ 18 19 #include <stdlib.h> 20 #include "test.h" 21 22 int 23 main(int argc, char **argv) 24 { 25 ASSERT(system("ls") == 0); 26 SUCCEED; 27 } 28