From 9d6e66d5160c6980341e35ef3dbe8c40cd7200c8 Mon Sep 17 00:00:00 2001 From: Steve Rhoades Date: Mon, 10 Nov 2014 15:46:49 +0000 Subject: [PATCH] add test for fs_close issue described in #36, updating travis build --- .travis.yml | 10 ++++------ tests/300-fs_close.phpt | 19 +++++++++++++++++++ travis-install.sh | 13 +++++++++++++ 3 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 tests/300-fs_close.phpt create mode 100644 travis-install.sh diff --git a/.travis.yml b/.travis.yml index 14e70fa..7f906e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,12 +5,10 @@ php: - 5.5 - 5.6 -before_script: - - sudo apt-add-repository -y ppa:linuxjedi/ppa - - sudo apt-get update -qq - - sudo apt-get -y install libuv-dev - - phpize && ./configure --with-uv --enable-httpparser && make && sudo make install - - echo "extension=uv.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` +before_install: + - chmod +x travis-install.sh + +install: ./travis-install.sh notifications: email: false diff --git a/tests/300-fs_close.phpt b/tests/300-fs_close.phpt new file mode 100644 index 0000000..5407f87 --- /dev/null +++ b/tests/300-fs_close.phpt @@ -0,0 +1,19 @@ +--TEST-- +Check for fs read and close +--FILE-- +> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`