source:
downloads/freealut-1.1.0/test_suite/test_errorstuff.c
@
14
Last change on this file since 14 was 14, checked in by landauf, 17 years ago | |
---|---|
File size: 421 bytes |
Line | |
---|---|
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 | } |
Note: See TracBrowser
for help on using the repository browser.