mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-26 09:07:30 +09:00
Issue #1338 - Part 1: Update NSPR to 4.24
This commit is contained in:
parent
f6096004d7
commit
1a92143e68
454 changed files with 42944 additions and 48647 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