Skip to content

Commit

Permalink
Fix PAL tests compilation on Alpine Linux (#111045)
Browse files Browse the repository at this point in the history
I've noticed that coreclr PAL tests don't compile successfully on Alpine
Linux in the CI. This change fixes it.
  • Loading branch information
janvorli authored Jan 3, 2025
1 parent efdd299 commit 49e185e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ PALTEST(c_runtime_strchr_test1_paltest_strchr_test1, "c_runtime/strchr/test1/pal
result = strchr(testCases[i].string,testCases[i].character);
if (result==NULL)
{
if (testCases[i].result != (int) NULL)
if (testCases[i].result != 0)
{
Fail("Expected strchr() to return \"%s\" instead of NULL!\n",
testCases[i].string + testCases[i].result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ PALTEST(file_io_ReadFile_test4_paltest_readfile_test4, "file_io/ReadFile/test4/p

/* Set the file pointer to beginning of file.
*/
res = SetFilePointer(hFile, (LONG)NULL, NULL, FILE_BEGIN);
res = SetFilePointer(hFile, 0, NULL, FILE_BEGIN);

if( (res == INVALID_SET_FILE_POINTER) &&
(GetLastError() != NO_ERROR))
Expand Down

0 comments on commit 49e185e

Please sign in to comment.