1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /***********************************************************************
10 ** Description: Test Program to verify the PR_FILE_NOT_FOUND_ERROR
11 ** This test program also uses the TRUNCATE option
13 ** Modification History:
14 ** 03-June-97 AGarcia- Initial version
15 ***********************************************************************/
17 /***********************************************************************
19 ***********************************************************************/
20 /* Used to get the command line option */
28 static PRFileDesc
*t1
;
31 int main(int argc
, char **argv
)
34 t1
= PR_Open("./tmp-ttools/err03.tmp", PR_TRUNCATE
| PR_RDWR
, 0666);
36 if (PR_GetError() == PR_FILE_NOT_FOUND_ERROR
) {
37 printf ("error code is %d \n", PR_GetError());
42 printf ("error code is %d \n", PR_GetError());
48 printf ("opened a file that should not exist\n");