test/testautomation_audio.c
changeset 6897 865811c9f372
parent 6839 2494f667555c
child 7093 f0ede46d5ee7
equal deleted inserted replaced
6896:d2c17a7761cb 6897:865811c9f372
    44    for (t=0; t<2; t++) {
    44    for (t=0; t<2; t++) {
    45    
    45    
    46       /* Get number of devices. */
    46       /* Get number of devices. */
    47       n = SDL_GetNumAudioDevices(t);
    47       n = SDL_GetNumAudioDevices(t);
    48       SDLTest_AssertPass("Call to SDL_GetNumAudioDevices(%i)", t);
    48       SDLTest_AssertPass("Call to SDL_GetNumAudioDevices(%i)", t);
    49       SDLTest_Log("Number of %s devices < 0, reported as %i", (t) ? "output" : "capture", n);
    49       SDLTest_Log("Number of %s devices < 0, reported as %i", (t) ? "capture" : "output", n);
    50       SDLTest_AssertCheck(n >= 0, "Validate result is >= 0, got: %i", n);
    50       SDLTest_AssertCheck(n >= 0, "Validate result is >= 0, got: %i", n);
    51 
    51 
    52       /* Variation of non-zero type */
    52       /* Variation of non-zero type */
    53       if (t==1) {
    53       if (t==1) {
    54          tt = t + SDLTest_RandomIntegerInRange(1,10);
    54          tt = t + SDLTest_RandomIntegerInRange(1,10);