update NSPR to 4.24 and keep NSPR Bug 1586070 and win64 patch intact.

This commit is contained in:
Roy Tam 2020-01-03 13:34:04 +08:00
commit 0b9855b841
487 changed files with 42933 additions and 48679 deletions

View file

@ -34,23 +34,23 @@ static PRFileDesc *t1;
int main(int argc, char **argv)
{
PR_STDIO_INIT();
t1 = PR_Open(NO_SUCH_FILE, PR_RDONLY, 0666);
if (t1 == NULL) {
if (PR_GetError() == PR_FILE_NOT_FOUND_ERROR) {
printf ("error code is PR_FILE_NOT_FOUND_ERROR, as expected\n");
printf ("PASS\n");
return 0;
} else {
printf ("error code is %d \n", PR_GetError());
printf ("FAIL\n");
return 1;
}
}
printf ("File %s exists on this machine!?\n", NO_SUCH_FILE);
if (PR_Close(t1) == PR_FAILURE) {
printf ("cannot close file\n");
printf ("error code is %d \n", PR_GetError());
}
printf ("FAIL\n");
return 1;
}
t1 = PR_Open(NO_SUCH_FILE, PR_RDONLY, 0666);
if (t1 == NULL) {
if (PR_GetError() == PR_FILE_NOT_FOUND_ERROR) {
printf ("error code is PR_FILE_NOT_FOUND_ERROR, as expected\n");
printf ("PASS\n");
return 0;
} else {
printf ("error code is %d \n", PR_GetError());
printf ("FAIL\n");
return 1;
}
}
printf ("File %s exists on this machine!?\n", NO_SUCH_FILE);
if (PR_Close(t1) == PR_FAILURE) {
printf ("cannot close file\n");
printf ("error code is %d \n", PR_GetError());
}
printf ("FAIL\n");
return 1;
}