Don't run the stdio automated tests if libc isn't available

This commit is contained in:
Sam Lantinga 2022-08-10 09:04:17 -07:00
parent e49321cec5
commit aaec244cfd
1 changed files with 6 additions and 0 deletions

View File

@ -393,6 +393,7 @@ rwops_testFileWrite(void)
int int
rwops_testFPRead(void) rwops_testFPRead(void)
{ {
#ifdef HAVE_LIBC
FILE *fp; FILE *fp;
SDL_RWops *rw; SDL_RWops *rw;
int result; int result;
@ -428,6 +429,8 @@ rwops_testFPRead(void)
SDLTest_AssertPass("Call to SDL_RWclose() succeeded"); SDLTest_AssertPass("Call to SDL_RWclose() succeeded");
SDLTest_AssertCheck(result == 0, "Verify result value is 0; got: %d", result); SDLTest_AssertCheck(result == 0, "Verify result value is 0; got: %d", result);
#endif /* HAVE_LIBC */
return TEST_COMPLETED; return TEST_COMPLETED;
} }
@ -443,6 +446,7 @@ rwops_testFPRead(void)
int int
rwops_testFPWrite(void) rwops_testFPWrite(void)
{ {
#ifdef HAVE_LIBC
FILE *fp; FILE *fp;
SDL_RWops *rw; SDL_RWops *rw;
int result; int result;
@ -478,6 +482,8 @@ rwops_testFPWrite(void)
SDLTest_AssertPass("Call to SDL_RWclose() succeeded"); SDLTest_AssertPass("Call to SDL_RWclose() succeeded");
SDLTest_AssertCheck(result == 0, "Verify result value is 0; got: %d", result); SDLTest_AssertCheck(result == 0, "Verify result value is 0; got: %d", result);
#endif /* HAVE_LIBC */
return TEST_COMPLETED; return TEST_COMPLETED;
} }