testautomation_rwops: update test because of change in SDL_RWwrite.

when it's not possible to write to memory ( mem_writeconst ), error code is -1 (see #6818)
This commit is contained in:
Sylvain 2022-12-16 10:24:19 +01:00
parent 6570febd47
commit b461d9e183
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E

View File

@ -116,7 +116,7 @@ void _testGenericRWopsValidations(SDL_RWops *rw, int write)
if (write) {
SDLTest_AssertCheck(s == sizeof(RWopsHelloWorldTestString) - 1, "Verify result of writing one byte with SDL_RWwrite, expected 1, got %i", (int)s);
} else {
SDLTest_AssertCheck(s == 0, "Verify result of writing with SDL_RWwrite, expected: 0, got %i", (int)s);
SDLTest_AssertCheck(s == -1, "Verify result of writing with SDL_RWwrite, expected: 0, got %i", (int)s);
}
/* Test seek to random position */