summaryrefslogtreecommitdiff
path: root/pr/tests/op_nofil.c
diff options
context:
space:
mode:
Diffstat (limited to 'pr/tests/op_nofil.c')
-rw-r--r--pr/tests/op_nofil.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/pr/tests/op_nofil.c b/pr/tests/op_nofil.c
index 2b809672..12d54201 100644
--- a/pr/tests/op_nofil.c
+++ b/pr/tests/op_nofil.c
@@ -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;
}