mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-29 20:27:12 +01:00
test: Fix for negative int that was now a size_t (thanks, Ozkan!).
Fixes Bugzilla #3787.
This commit is contained in:
parent
21e32bac10
commit
4fc0163853
@ -35,6 +35,7 @@ sdltest_generateRunSeed(void *arg)
|
|||||||
{
|
{
|
||||||
char* result;
|
char* result;
|
||||||
size_t i, l;
|
size_t i, l;
|
||||||
|
int j;
|
||||||
|
|
||||||
for (i = 1; i <= 10; i += 3) {
|
for (i = 1; i <= 10; i += 3) {
|
||||||
result = SDLTest_GenerateRunSeed((const int)i);
|
result = SDLTest_GenerateRunSeed((const int)i);
|
||||||
@ -48,8 +49,8 @@ sdltest_generateRunSeed(void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Negative cases */
|
/* Negative cases */
|
||||||
for (i = -2; i <= 0; i++) {
|
for (j = -2; j <= 0; i++) {
|
||||||
result = SDLTest_GenerateRunSeed((const int)i);
|
result = SDLTest_GenerateRunSeed((const int)j);
|
||||||
SDLTest_AssertPass("Call to SDLTest_GenerateRunSeed()");
|
SDLTest_AssertPass("Call to SDLTest_GenerateRunSeed()");
|
||||||
SDLTest_AssertCheck(result == NULL, "Verify returned value is not NULL");
|
SDLTest_AssertCheck(result == NULL, "Verify returned value is not NULL");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user