From aaec244cfd460c0d8c910f503f3fd8e0b4b8af82 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 10 Aug 2022 09:04:17 -0700 Subject: [PATCH] Don't run the stdio automated tests if libc isn't available --- test/testautomation_rwops.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/testautomation_rwops.c b/test/testautomation_rwops.c index a7d3c3272..44e0086bb 100644 --- a/test/testautomation_rwops.c +++ b/test/testautomation_rwops.c @@ -393,6 +393,7 @@ rwops_testFileWrite(void) int rwops_testFPRead(void) { +#ifdef HAVE_LIBC FILE *fp; SDL_RWops *rw; int result; @@ -428,6 +429,8 @@ rwops_testFPRead(void) SDLTest_AssertPass("Call to SDL_RWclose() succeeded"); SDLTest_AssertCheck(result == 0, "Verify result value is 0; got: %d", result); +#endif /* HAVE_LIBC */ + return TEST_COMPLETED; } @@ -443,6 +446,7 @@ rwops_testFPRead(void) int rwops_testFPWrite(void) { +#ifdef HAVE_LIBC FILE *fp; SDL_RWops *rw; int result; @@ -478,6 +482,8 @@ rwops_testFPWrite(void) SDLTest_AssertPass("Call to SDL_RWclose() succeeded"); SDLTest_AssertCheck(result == 0, "Verify result value is 0; got: %d", result); +#endif /* HAVE_LIBC */ + return TEST_COMPLETED; }