Tizen 2.1 base
[external/freealut.git] / test_suite / test_errorstuff.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <AL/alut.h>
4
5 /*
6  * This is a minimal test for error handling.
7  */
8
9 int
10 main (int argc, char **argv)
11 {
12   ALuint buffer;
13
14   alutInit (&argc, argv);
15   buffer = alutCreateBufferFromFile ("no_such_file_in_existance.wav");
16   alutExit ();
17
18   if (buffer != AL_NONE)
19     {
20       fprintf (stderr, "expected an I/O error\n");
21       return EXIT_FAILURE;
22     }
23   return EXIT_SUCCESS;
24 }