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

@ -29,20 +29,20 @@ int main(int argc, char **argv)
{
PR_STDIO_INIT();
t1 = PR_Open(argv[0], PR_RDONLY, 0666);
t1 = PR_Open(argv[0], PR_RDONLY, 0666);
if (t1 == NULL) {
printf ("error code is %d \n", PR_GetError());
printf ("File %s should be found\n", argv[0]);
return 1;
} else {
if (PR_Close(t1) == PR_SUCCESS) {
printf ("Test passed \n");
return 0;
} else {
printf ("cannot close file\n");
printf ("error code is %d\n", PR_GetError());
return 1;
}
}
}
if (t1 == NULL) {
printf ("error code is %d \n", PR_GetError());
printf ("File %s should be found\n", argv[0]);
return 1;
} else {
if (PR_Close(t1) == PR_SUCCESS) {
printf ("Test passed \n");
return 0;
} else {
printf ("cannot close file\n");
printf ("error code is %d\n", PR_GetError());
return 1;
}
}
}