Added missing brackets in test source assert messages.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 07 Nov 2014 10:02:45 +0100
changeset 9219c65108ddbeb0
parent 9218 74b8ddd028c7
child 9220 1cb6ac648db7
Added missing brackets in test source assert messages.
test/testautomation_audio.c
test/testautomation_rwops.c
test/testautomation_syswm.c
test/testautomation_video.c
     1.1 --- a/test/testautomation_audio.c	Fri Nov 07 10:01:20 2014 +0100
     1.2 +++ b/test/testautomation_audio.c	Fri Nov 07 10:02:45 2014 +0100
     1.3 @@ -92,7 +92,7 @@
     1.4  
     1.5          /* Loop over all available audio drivers */
     1.6          iMax = SDL_GetNumAudioDrivers();
     1.7 -        SDLTest_AssertPass("Call to SDL_GetNumAudioDrivers");
     1.8 +        SDLTest_AssertPass("Call to SDL_GetNumAudioDrivers()");
     1.9          SDLTest_AssertCheck(iMax > 0, "Validate number of audio drivers; expected: >0 got: %d", iMax);
    1.10          for (i = 0; i < iMax; i++) {
    1.11              audioDriver = SDL_GetAudioDriver(i);
    1.12 @@ -149,7 +149,7 @@
    1.13  
    1.14          /* Loop over all available audio drivers */
    1.15          iMax = SDL_GetNumAudioDrivers();
    1.16 -        SDLTest_AssertPass("Call to SDL_GetNumAudioDrivers");
    1.17 +        SDLTest_AssertPass("Call to SDL_GetNumAudioDrivers()");
    1.18          SDLTest_AssertCheck(iMax > 0, "Validate number of audio drivers; expected: >0 got: %d", iMax);
    1.19          for (i = 0; i < iMax; i++) {
    1.20              audioDriver = SDL_GetAudioDriver(i);
    1.21 @@ -238,7 +238,7 @@
    1.22  
    1.23          /* Loop over all available audio drivers */
    1.24          iMax = SDL_GetNumAudioDrivers();
    1.25 -        SDLTest_AssertPass("Call to SDL_GetNumAudioDrivers");
    1.26 +        SDLTest_AssertPass("Call to SDL_GetNumAudioDrivers()");
    1.27          SDLTest_AssertCheck(iMax > 0, "Validate number of audio drivers; expected: >0 got: %d", iMax);
    1.28          for (i = 0; i < iMax; i++) {
    1.29              audioDriver = SDL_GetAudioDriver(i);
     2.1 --- a/test/testautomation_rwops.c	Fri Nov 07 10:01:20 2014 +0100
     2.2 +++ b/test/testautomation_rwops.c	Fri Nov 07 10:02:45 2014 +0100
     2.3 @@ -647,22 +647,22 @@
     2.4  
     2.5       /* Write test data */
     2.6       objectsWritten = SDL_WriteBE16(rw, BE16value);
     2.7 -     SDLTest_AssertPass("Call to SDL_WriteBE16");
     2.8 +     SDLTest_AssertPass("Call to SDL_WriteBE16()");
     2.9       SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);
    2.10       objectsWritten = SDL_WriteBE32(rw, BE32value);
    2.11 -     SDLTest_AssertPass("Call to SDL_WriteBE32");
    2.12 +     SDLTest_AssertPass("Call to SDL_WriteBE32()");
    2.13       SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);
    2.14       objectsWritten = SDL_WriteBE64(rw, BE64value);
    2.15 -     SDLTest_AssertPass("Call to SDL_WriteBE64");
    2.16 +     SDLTest_AssertPass("Call to SDL_WriteBE64()");
    2.17       SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);
    2.18       objectsWritten = SDL_WriteLE16(rw, LE16value);
    2.19 -     SDLTest_AssertPass("Call to SDL_WriteLE16");
    2.20 +     SDLTest_AssertPass("Call to SDL_WriteLE16()");
    2.21       SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);
    2.22       objectsWritten = SDL_WriteLE32(rw, LE32value);
    2.23 -     SDLTest_AssertPass("Call to SDL_WriteLE32");
    2.24 +     SDLTest_AssertPass("Call to SDL_WriteLE32()");
    2.25       SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);
    2.26       objectsWritten = SDL_WriteLE64(rw, LE64value);
    2.27 -     SDLTest_AssertPass("Call to SDL_WriteLE64");
    2.28 +     SDLTest_AssertPass("Call to SDL_WriteLE64()");
    2.29       SDLTest_AssertCheck(objectsWritten == 1, "Validate number of objects written, expected: 1, got: %i", objectsWritten);
    2.30  
    2.31       /* Test seek to start */
    2.32 @@ -672,22 +672,22 @@
    2.33  
    2.34       /* Read test data */
    2.35       BE16test = SDL_ReadBE16(rw);
    2.36 -     SDLTest_AssertPass("Call to SDL_ReadBE16");
    2.37 +     SDLTest_AssertPass("Call to SDL_ReadBE16()");
    2.38       SDLTest_AssertCheck(BE16test == BE16value, "Validate return value from SDL_ReadBE16, expected: %hu, got: %hu", BE16value, BE16test);
    2.39       BE32test = SDL_ReadBE32(rw);
    2.40 -     SDLTest_AssertPass("Call to SDL_ReadBE32");
    2.41 +     SDLTest_AssertPass("Call to SDL_ReadBE32()");
    2.42       SDLTest_AssertCheck(BE32test == BE32value, "Validate return value from SDL_ReadBE32, expected: %u, got: %u", BE32value, BE32test);
    2.43       BE64test = SDL_ReadBE64(rw);
    2.44 -     SDLTest_AssertPass("Call to SDL_ReadBE64");
    2.45 +     SDLTest_AssertPass("Call to SDL_ReadBE64()");
    2.46       SDLTest_AssertCheck(BE64test == BE64value, "Validate return value from SDL_ReadBE64, expected: %llu, got: %llu", BE64value, BE64test);
    2.47       LE16test = SDL_ReadLE16(rw);
    2.48 -     SDLTest_AssertPass("Call to SDL_ReadLE16");
    2.49 +     SDLTest_AssertPass("Call to SDL_ReadLE16()");
    2.50       SDLTest_AssertCheck(LE16test == LE16value, "Validate return value from SDL_ReadLE16, expected: %hu, got: %hu", LE16value, LE16test);
    2.51       LE32test = SDL_ReadLE32(rw);
    2.52 -     SDLTest_AssertPass("Call to SDL_ReadLE32");
    2.53 +     SDLTest_AssertPass("Call to SDL_ReadLE32()");
    2.54       SDLTest_AssertCheck(LE32test == LE32value, "Validate return value from SDL_ReadLE32, expected: %u, got: %u", LE32value, LE32test);
    2.55       LE64test = SDL_ReadLE64(rw);
    2.56 -     SDLTest_AssertPass("Call to SDL_ReadLE64");
    2.57 +     SDLTest_AssertPass("Call to SDL_ReadLE64()");
    2.58       SDLTest_AssertCheck(LE64test == LE64value, "Validate return value from SDL_ReadLE64, expected: %llu, got: %llu", LE64value, LE64test);
    2.59  
    2.60       /* Close handle */
     3.1 --- a/test/testautomation_syswm.c	Fri Nov 07 10:01:20 2014 +0100
     3.2 +++ b/test/testautomation_syswm.c	Fri Nov 07 10:02:45 2014 +0100
     3.3 @@ -32,7 +32,7 @@
     3.4  
     3.5    /* Make call */
     3.6    result = SDL_GetWindowWMInfo(window, &info);
     3.7 -  SDLTest_AssertPass("Call to SDL_GetWindowWMInfo");
     3.8 +  SDLTest_AssertPass("Call to SDL_GetWindowWMInfo()");
     3.9    SDLTest_Log((result == SDL_TRUE) ? "Got window information" : "Couldn't get window information");
    3.10  
    3.11    SDL_DestroyWindow(window);
     4.1 --- a/test/testautomation_video.c	Fri Nov 07 10:01:20 2014 +0100
     4.2 +++ b/test/testautomation_video.c	Fri Nov 07 10:02:45 2014 +0100
     4.3 @@ -51,7 +51,7 @@
     4.4    if (window != NULL) {
     4.5       SDL_DestroyWindow(window);
     4.6       window = NULL;
     4.7 -     SDLTest_AssertPass("Call to SDL_DestroyWindow");
     4.8 +     SDLTest_AssertPass("Call to SDL_DestroyWindow()");
     4.9    }
    4.10  }
    4.11  
    4.12 @@ -342,7 +342,7 @@
    4.13    window = _createVideoSuiteTestWindow(title);
    4.14    if (window != NULL) {
    4.15        actualFlags = SDL_GetWindowFlags(window);
    4.16 -      SDLTest_AssertPass("Call to SDL_GetWindowFlags");
    4.17 +      SDLTest_AssertPass("Call to SDL_GetWindowFlags()");
    4.18        SDLTest_AssertCheck((flags & actualFlags) == flags, "Verify returned value has flags %d set, got: %d", flags, actualFlags);
    4.19    }
    4.20  
    4.21 @@ -364,7 +364,7 @@
    4.22  
    4.23    /* Get number of displays */
    4.24    displayNum = SDL_GetNumVideoDisplays();
    4.25 -  SDLTest_AssertPass("Call to SDL_GetNumVideoDisplays");
    4.26 +  SDLTest_AssertPass("Call to SDL_GetNumVideoDisplays()");
    4.27  
    4.28    /* Make call for each display */
    4.29    for (i=0; i<displayNum; i++) {
    4.30 @@ -388,7 +388,7 @@
    4.31  
    4.32    /* Get number of displays */
    4.33    displayNum = SDL_GetNumVideoDisplays();
    4.34 -  SDLTest_AssertPass("Call to SDL_GetNumVideoDisplays");
    4.35 +  SDLTest_AssertPass("Call to SDL_GetNumVideoDisplays()");
    4.36  
    4.37    /* Invalid boundary values */
    4.38    displayIndex =  SDLTest_RandomSint32BoundaryValue(0, displayNum, SDL_FALSE);
    4.39 @@ -427,7 +427,7 @@
    4.40  
    4.41    /* Get number of displays */
    4.42    displayNum = SDL_GetNumVideoDisplays();
    4.43 -  SDLTest_AssertPass("Call to SDL_GetNumVideoDisplays");
    4.44 +  SDLTest_AssertPass("Call to SDL_GetNumVideoDisplays()");
    4.45  
    4.46    /* Make calls for each display */
    4.47    for (i=0; i<displayNum; i++) {
    4.48 @@ -435,7 +435,7 @@
    4.49  
    4.50      /* Get first display mode to get a sane resolution; this should always work */
    4.51      result = SDL_GetDisplayMode(i, 0, &current);
    4.52 -    SDLTest_AssertPass("Call to SDL_GetDisplayMode");
    4.53 +    SDLTest_AssertPass("Call to SDL_GetDisplayMode()");
    4.54      SDLTest_AssertCheck(result == 0, "Verify return value, expected: 0, got: %d", result);
    4.55      if (result != 0) {
    4.56        return TEST_ABORTED;
    4.57 @@ -481,7 +481,7 @@
    4.58  
    4.59    /* Get number of displays */
    4.60    displayNum = SDL_GetNumVideoDisplays();
    4.61 -  SDLTest_AssertPass("Call to SDL_GetNumVideoDisplays");
    4.62 +  SDLTest_AssertPass("Call to SDL_GetNumVideoDisplays()");
    4.63  
    4.64    /* Make calls for each display */
    4.65    for (i=0; i<displayNum; i++) {
    4.66 @@ -521,7 +521,7 @@
    4.67    window = _createVideoSuiteTestWindow(title);
    4.68    if (window != NULL) {
    4.69        result = SDL_GetWindowBrightness(window);
    4.70 -      SDLTest_AssertPass("Call to SDL_GetWindowBrightness");
    4.71 +      SDLTest_AssertPass("Call to SDL_GetWindowBrightness()");
    4.72        SDLTest_AssertCheck(result >= 0.0 && result <= 1.0, "Validate range of result value; expected: [0.0, 1.0], got: %f", result);
    4.73    }
    4.74  
    4.75 @@ -583,7 +583,7 @@
    4.76    window = _createVideoSuiteTestWindow(title);
    4.77    if (window != NULL) {
    4.78        result = SDL_GetWindowDisplayMode(window, &mode);
    4.79 -      SDLTest_AssertPass("Call to SDL_GetWindowDisplayMode");
    4.80 +      SDLTest_AssertPass("Call to SDL_GetWindowDisplayMode()");
    4.81        SDLTest_AssertCheck(result == 0, "Validate result value; expected: 0, got: %d", result);
    4.82        SDLTest_AssertCheck(mode.w > 0, "Validate mode.w content; expected: >0, got: %d", mode.w);
    4.83        SDLTest_AssertCheck(mode.h > 0, "Validate mode.h content; expected: >0, got: %d", mode.h);