/* * Copyright 2013 The Emscripten Authors. All rights reserved. * Emscripten is available under two separate licenses, the MIT license and the * University of Illinois/NCSA Open Source License. Both these licenses can be * found in the LICENSE file. */ #include #include #include /* * This is a minimal test for error handling. */ int main(int argc, char **argv) { ALuint buffer; alutInit(&argc, argv); buffer = alutCreateBufferFromFile("no_such_file_in_existance.wav"); alutExit(); if (buffer != AL_NONE) { fprintf(stderr, "expected an I/O error\n"); return EXIT_FAILURE; } return EXIT_SUCCESS; }