diff --git a/.travis.yml b/.travis.yml index dbf67d501..cafcb895e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,7 +62,7 @@ script: export CPPFLAGS="-fprofile-arcs -ftest-coverage"; export LIBS="-lgcov"; ./autogen.sh; - ./configure --enable-debug agi_cv_with_openal=yes || cat config.log; + ./configure --enable-debug || cat config.log; make -j2; make test || travis_terminate 1; coveralls --exclude vendor --exclude src --exclude build --exclude tools --exclude libaegisub/windows > /dev/null; diff --git a/configure.ac b/configure.ac index 491e7ed85..12d70c493 100644 --- a/configure.ac +++ b/configure.ac @@ -339,9 +339,9 @@ AS_IF([test x$with_openal != xno], [ #endif int main(void) { ALCdevice *device = alcOpenDevice(0); - if (!device) return 1; ALCcontext *context = alcCreateContext(device, 0); - if (!context) return 1; + alcDestroyContext(context); + alcCloseDevice(device); return 0; } ]) ])