mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 08:47:31 +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
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue