X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fregression%2Fust%2Flibc-wrapper%2Ftest_libc-wrapper.py;h=2870c81c1e47b743a6923aa742df3bc7115fc9d8;hb=a4c305246c4b8021fa1681076326731349a1cd17;hp=d00a135fe8c4a758a5da55b0da501c1f68fcb568;hpb=72615c1f3d74659fda2f23e5d857f6274c1abb6e;p=lttng-tools.git diff --git a/tests/regression/ust/libc-wrapper/test_libc-wrapper.py b/tests/regression/ust/libc-wrapper/test_libc-wrapper.py index d00a135fe..2870c81c1 100644 --- a/tests/regression/ust/libc-wrapper/test_libc-wrapper.py +++ b/tests/regression/ust/libc-wrapper/test_libc-wrapper.py @@ -42,15 +42,8 @@ session_info = create_session() enable_ust_tracepoint_event(session_info, "lttng_ust_libc*") start_session(session_info) -malloc_process = subprocess.Popen(test_path + "prog", stdout=subprocess.PIPE, stderr=subprocess.PIPE) -if sys.version_info >= (3, 3): - try: - malloc_process.wait(5) - except TimeoutExpired: - malloc_process.kill() - bail("Failed to run libustinstr-malloc test application.", session_info) -else: - malloc_process.wait() +malloc_process = subprocess.Popen(test_path + "prog", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) +malloc_process.wait() print_test_result(malloc_process.returncode == 0, current_test, "Test application exited normally") current_test += 1