From b461d9e18346c38a9a45cb3e3a8c33a52a92b3fd Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Fri, 16 Dec 2022 10:24:19 +0100
Subject: [PATCH] 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)
---
test/testautomation_rwops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/testautomation_rwops.c b/test/testautomation_rwops.c
index 87b26558150a..84b8e77811a6 100644
--- a/test/testautomation_rwops.c
+++ b/test/testautomation_rwops.c
@@ -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 */