Skip to content

Commit

Permalink
Backport Laravel test hack
Browse files Browse the repository at this point in the history
The way to work around this changed, backport the version from
master.
  • Loading branch information
nikic committed Aug 18, 2021
1 parent f3c45c1 commit 51147e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions azure/community_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ jobs:
cd framework
php7.4 /usr/bin/composer install --no-progress
export USE_ZEND_ALLOC=0
sed -i 's/$exit = true/$exit = false/g' vendor/phpunit/phpunit/src/TextUI/Command.php
# Avoid test using exit(), which thus leaks.
# We can use USE_TRACKED_ALLOC=1 if more of these show up.
sed -i "s/function_exists('pcntl_fork')/false/" tests/Filesystem/FilesystemTest.php
sed -i 's/$exit = true/$exit = false/g' vendor/phpunit/phpunit/src/TextUI/Command.php
# Hack to disable a test that hangs on azure
sed -i 's/PHP_OS/"Darwin"/' tests/Filesystem/FilesystemTest.php
php vendor/bin/phpunit
displayName: 'Test Laravel'
- script: |
Expand Down

0 comments on commit 51147e2

Please sign in to comment.