mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 03:17:31 +09:00
update NSPR to 4.24 and keep NSPR Bug 1586070 and win64 patch intact.
This commit is contained in:
parent
dd094ae552
commit
0b9855b841
487 changed files with 42933 additions and 48679 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue