test/testautomation_clipboard.c
changeset 7477 a73210626b97
parent 7191 75360622e65f
child 7719 31b5f9ff36ca
equal deleted inserted replaced
7476:61b9a4c4ca43 7477:a73210626b97
   138         "Verify SDL_HasClipboardText returned SDL_TRUE, got %s",
   138         "Verify SDL_HasClipboardText returned SDL_TRUE, got %s",
   139         (boolResult) ? "SDL_TRUE" : "SDL_FALSE");
   139         (boolResult) ? "SDL_TRUE" : "SDL_FALSE");
   140     charResult = SDL_GetClipboardText();
   140     charResult = SDL_GetClipboardText();
   141     SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
   141     SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
   142     SDLTest_AssertCheck(
   142     SDLTest_AssertCheck(
   143         strcmp(textRef, charResult) == 0,
   143         SDL_strcmp(textRef, charResult) == 0,
   144         "Verify SDL_GetClipboardText returned correct string, expected '%s', got '%s'",
   144         "Verify SDL_GetClipboardText returned correct string, expected '%s', got '%s'",
   145         textRef, charResult);
   145         textRef, charResult);
   146 
   146 
   147     /* Cleanup */
   147     /* Cleanup */
   148     if (textRef) SDL_free(textRef);
   148     if (textRef) SDL_free(textRef);