blob: 7d21e9d67bb912a30f9f6a50b7a0127de627dcbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <stdio.h>
#include <stdlib.h>
#include <AL/alut.h>
/*
* 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;
}
|