don't be too pedantic on the OpenAL checks

This commit is contained in:
darealshinji 2018-06-13 01:31:51 +02:00 committed by wangqr
parent 22063d7e6b
commit d708f3ecd8
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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;
} ])
])