Test fix: test_fork can hang while waiting for child pids
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 29 Sep 2016 04:03:42 +0000 (00:03 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 3 Oct 2016 16:08:32 +0000 (12:08 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/ust/fork/test_fork.py

index 3baa8cc389dc6aa88e4f21de8880b2ea324b19d2..7288bcc371c559654f61439a0ea5c4650c8a6718 100644 (file)
@@ -43,8 +43,6 @@ enable_ust_tracepoint_event(session_info, "ust_tests_fork*")
 start_session(session_info)
 
 fork_process = subprocess.Popen([test_path + "fork", test_path + "fork2"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
-fork_process.wait()
-
 parent_pid = -1
 child_pid = -1
 for line in fork_process.stdout:
@@ -56,6 +54,8 @@ for line in fork_process.stdout:
     if match:
         parent_pid = match.group(1)
 
+fork_process.wait()
+
 print_test_result(fork_process.returncode == 0, current_test, "Fork test application exited normally")
 current_test += 1
 
This page took 0.02842 seconds and 4 git commands to generate.