From 428adc0c79868cfdab73d7ae988da3248404da93 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Fri, 23 Aug 2024 14:54:05 +0200 Subject: [PATCH] Run test_extension_ci with strace Signed-off-by: Bob Weinand --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 456ac3ac21..58a3a53b5f 100644 --- a/Makefile +++ b/Makefile @@ -175,7 +175,8 @@ test_extension_ci: $(SO_FILE) $(TEST_FILES) $(TEST_STUB_FILES) $(BUILD_DIR)/run- export DD_TRACE_CLI_ENABLED=1; \ export TEST_PHP_JUNIT=$(JUNIT_RESULTS_DIR)/normal-extension-test.xml; \ export DD_TRACE_GIT_METADATA_ENABLED=0; \ - $(RUN_TESTS_CMD) -d extension=$(SO_FILE) $(BUILD_DIR)/$(TESTS); \ + pkill -9 -f [d]atadog-ipc-helper; \ + strace -f -s 200 bash -c "$(RUN_TESTS_CMD) -d extension=$(SO_FILE) $(BUILD_DIR)/$(TESTS) 2>&3" 3>&2 2>$(BUILD_DIR)/tests/ext/run.strace; \ \ export TEST_PHP_JUNIT=$(JUNIT_RESULTS_DIR)/valgrind-extension-test.xml; \ export TEST_PHP_OUTPUT=$(JUNIT_RESULTS_DIR)/valgrind-run-tests.out; \