* testsuite/systemtap.clone/dtrace_fork_exec.exp: Improve output string to
handle parent/child execution order differences.
* testsuite/systemtap.clone/dtrace_vfork_parent.c: Added include files to
avoid compile error on RHEL5.
* testsuite/systemtap.clone/dtrace_vfork_parent.c: Ditto.
return 0
}
-set output_string "parent - pid: \[0-9\]+\r\nparent - child pid: \[0-9\]+\r\nparent - child pid before exec: \[0-9\]+\r\nchild - pid: \[0-9\]+\r\nparent - finished\r\n"
+# Since we can't guarentee the order of parent/child execution, we
+# have to be flexible on output.
+set output_string "parent - pid: \[0-9\]+\r\nparent - child pid( before exec)?: \[0-9\]+\r\nparent - child pid( before exec)?: \[0-9\]+\r\nchild - pid: \[0-9\]+\r\nparent - finished\r\n"
# Build everything (without semaphores)
set TEST_NAME "dtrace_fork_exec1"
#include <string.h>
#include <sched.h>
#include <errno.h>
+#include <sys/types.h>
+#include <sys/wait.h>
#include "dtrace_fork_parent_probes.h"
#if !defined(USE_SEMAPHORES)
#include <string.h>
#include <sched.h>
#include <errno.h>
+#include <sys/types.h>
+#include <sys/wait.h>
#include "dtrace_vfork_parent_probes.h"
#if !defined(USE_SEMAPHORES)