~ubuntu-branches/ubuntu/vivid/libsdl2/vivid

« back to all changes in this revision

Viewing changes to test/testautomation_clipboard.c

  • Committer: Package Import Robot
  • Author(s): Manuel A. Fernandez Montecelo, Felix Geyer
  • Date: 2013-12-28 12:31:19 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20131228123119-e0k27gckmnzskfgb
Tags: 2.0.1+dfsg1-1
* New upstream release (Closes: #728974)
  - Remove patch applied upstream:
    bug-723797-false_positives_in_mouse_wheel_code.patch
* Bump Standards-Version to 3.9.5, no changes needed.

[ Felix Geyer ]
* Import upstream gpg key for uscan to verify the orig tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    charResult = SDL_GetClipboardText();
42
42
    SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
43
43
 
44
 
    if (charResult) SDL_free(charResult);
 
44
    SDL_free(charResult);
45
45
 
46
46
    return TEST_COMPLETED;
47
47
}
69
69
        textRef, text);
70
70
 
71
71
    /* Cleanup */
72
 
    if (textRef) SDL_free(textRef);
73
 
    if (text) SDL_free(text);
 
72
    SDL_free(textRef);
 
73
    SDL_free(text);
74
74
 
75
75
   return TEST_COMPLETED;
76
76
}
118
118
        charResult != NULL,
119
119
        "Verify SDL_GetClipboardText did not return NULL");
120
120
    SDLTest_AssertCheck(
121
 
        SDL_strlen(charResult) == 0,
 
121
        charResult[0] == '\0',
122
122
        "Verify SDL_GetClipboardText returned string with length 0, got length %i",
123
123
        SDL_strlen(charResult));
124
124
    intResult = SDL_SetClipboardText((const char *)text);
145
145
        textRef, charResult);
146
146
 
147
147
    /* Cleanup */
148
 
    if (textRef) SDL_free(textRef);
149
 
    if (text) SDL_free(text);
150
 
    if (charResult) SDL_free(charResult);
 
148
    SDL_free(textRef);
 
149
    SDL_free(text);
 
150
    SDL_free(charResult);
151
151
 
152
152
   return TEST_COMPLETED;
153
153
}