From aee31dd7e4449f0b2356949596b1303f3d75c3cd Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 3 Sep 2019 10:02:30 +0200 Subject: Improve Symfony test setup Perform PHPUnit installation under php7.3 -- which will also make it work on master. Also properly resolve the tty issue by specifying excluded groups during the test run. --- azure/community_job.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure/community_job.yml b/azure/community_job.yml index 16efaed7fd..8a88b9db97 100644 --- a/azure/community_job.yml +++ b/azure/community_job.yml @@ -60,11 +60,11 @@ jobs: git clone https://github.com/symfony/symfony.git --branch=master --depth=1 cd symfony php7.3 /usr/bin/composer install --no-progress + php7.3 ./phpunit install export USE_ZEND_ALLOC=0 export USE_TRACKED_ALLOC=1 export ASAN_OPTIONS=exitcode=139 - # Close stdin because we hang on some kind of tty test otherwise. - php ./phpunit 0<&- + php ./phpunit --exclude-group tty,benchmark,intl-data,transient if [ $? -gt 128 ]; then exit 1 fi -- cgit v1.2.1 From b7c353c8d03595f544b0ce87bf46e741f6a45ebe Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 3 Sep 2019 10:06:09 +0200 Subject: Specify -fsanitize-no-recover To make it more obvious when there are ubsan failures. --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a4174940da..82531f2786 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -80,5 +80,5 @@ jobs: configurationName: COMMUNITY configurationParameters: >- --enable-debug --enable-maintainer-zts - CFLAGS='-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC' + CFLAGS='-fsanitize=undefined,address -fno-sanitize-recover -DZEND_TRACK_ARENA_ALLOC' LDFLAGS='-fsanitize=undefined,address' -- cgit v1.2.1