Merged with HEAD from 8/18 or so. unlabeled-3.9.24
authorcls%seawood.org
Fri, 20 Aug 1999 16:21:54 +0000
branchunlabeled-3.9.24
changeset 788 026e7c3a503225d083a9a86d3a214a0439b95ace
parent 749 60c9ba5066febe5bd4eb3be1cac9b167c2cf98cf
push idunknown
push userunknown
push dateunknown
Merged with HEAD from 8/18 or so.
pr/tests/testfile.c
--- a/pr/tests/testfile.c
+++ b/pr/tests/testfile.c
@@ -637,24 +637,24 @@ HANDLE hfile;
 		if (fd_file == NULL) {
 			printf(
 					"testfile failed to create/open file %s [%d, %d]\n",
 					pathname, PR_GetError(), PR_GetOSError());
 			return -1;
 		}
         PR_Close(fd_file);
 	}
-#if defined(XP_UNIX) || defined(XP_MAC) || (defined(XP_PC) && defined(WIN32)) || defined(XP_OS2)
+#if defined(XP_UNIX) || defined(XP_MAC) || (defined(XP_PC) && defined(WIN32)) || defined(XP_OS2) || defined(XP_BEOS)
 	/*
 	 * Create a hidden file - a platform-dependent operation
 	 */
 	strcpy(pathname, TEST_DIR);
 	strcat(pathname, "/");
 	strcat(pathname, HIDDEN_FILE_NAME);
-#if defined(XP_UNIX) || defined(XP_MAC)
+#if defined(XP_UNIX) || defined(XP_MAC) || defined(XP_BEOS)
 	DPRINTF(("Creating hidden test file %s\n",pathname));
 	fd_file = PR_Open(pathname, PR_RDWR | PR_CREATE_FILE, 0777);
 
 	if (fd_file == NULL) {
 		printf(
 				"testfile failed to create/open hidden file %s [%d, %d]\n",
 				pathname, PR_GetError(), PR_GetOSError());
 		return -1;
@@ -754,17 +754,17 @@ HANDLE hfile;
 			TEST_DIR, PR_GetError(), PR_GetOSError());
 		return -1;
 	}
   
 	/*
 	 * List all files, including hidden files
 	 */
 	DPRINTF(("Listing all files in directory %s\n",TEST_DIR));
-#if defined(XP_UNIX) || defined(XP_MAC) || (defined(XP_PC) && defined(WIN32)) || defined(XP_OS2)
+#if defined(XP_UNIX) || defined(XP_MAC) || (defined(XP_PC) && defined(WIN32)) || defined(XP_OS2) || defined(XP_BEOS)
 	num_files = FILES_IN_DIR + 1;
 #else
 	num_files = FILES_IN_DIR;
 #endif
 	while ((dirEntry = PR_ReadDir(fd_dir, PR_SKIP_BOTH)) != NULL) {
 		num_files--;
 		strcpy(pathname, TEST_DIR);
 		strcat(pathname, "/");
@@ -790,17 +790,17 @@ HANDLE hfile;
 		printf(
 			"testfile failed to find all files in directory %s [%d, %d]\n",
 			TEST_DIR, PR_GetError(), PR_GetOSError());
 		return -1;
 	}
 
     PR_CloseDir(fd_dir);
 
-#if defined(XP_UNIX) || defined(XP_MAC) || (defined(XP_PC) && defined(WIN32)) || defined(XP_OS2)
+#if defined(XP_UNIX) || defined(XP_MAC) || (defined(XP_PC) && defined(WIN32)) || defined(XP_OS2) || defined(XP_BEOS)
 
 	/*
 	 * List all files, except hidden files
 	 */
 
 	fd_dir = PR_OpenDir(TEST_DIR);
 	if (fd_dir == NULL) {
 		printf(