summaryrefslogtreecommitdiff
path: root/tests/test_config.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-28 04:28:27 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-28 04:28:27 +0000
commit8a9e2e86cfda8de4b96f33cba6ea002bfc5083c0 (patch)
tree55428b646361b006afdc0a913166ff7816098a45 /tests/test_config.h
parentac1b8040446001bbf754b8b4f46780a04b72d5f9 (diff)
downloadATCD-8a9e2e86cfda8de4b96f33cba6ea002bfc5083c0.tar.gz
.
Diffstat (limited to 'tests/test_config.h')
-rw-r--r--tests/test_config.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/tests/test_config.h b/tests/test_config.h
index cd825452cc7..f820fb19d3e 100644
--- a/tests/test_config.h
+++ b/tests/test_config.h
@@ -6,9 +6,15 @@
// = FILENAME
// test_config.h
//
+// = DESCRIPTION
+//
+// This file factors out common macros and other utilities used by the
+// ACE automated regression tests.
+//
// = AUTHOR
-// Prashant Jain <pjain@cs.wustl.edu>, Tim Harrison
-// <harrison@cs.wustl.edu>, and David Levine <levine@cs.wustl.edu>
+// Prashant Jain <pjain@cs.wustl.edu>,
+// Tim Harrison <harrison@cs.wustl.edu>,
+// and David Levine <levine@cs.wustl.edu>
//
// ============================================================================
@@ -262,10 +268,10 @@ ACE_Test_Output::set_output (const ASYS_TCHAR *filename, int append)
ACE_LOG_FILE_EXT_NAME_A);
#if defined (VXWORKS)
- // This is the only way I could figure out to avoid a console warning
- // about opening an existing file (w/o O_CREAT), or attempting to unlink
- // a non-existant one.
- int fd = ACE_OS::open (temp, O_WRONLY | O_CREAT, 0x644);
+ // This is the only way I could figure out to avoid a console
+ // warning about opening an existing file (w/o O_CREAT), or
+ // attempting to unlink a non-existant one.
+ ACE_HANDLE fd = ACE_OS::open (temp, O_WRONLY | O_CREAT, 0x644);
if (fd != ERROR)
{
ACE_OS::close (fd);
@@ -273,7 +279,7 @@ ACE_Test_Output::set_output (const ASYS_TCHAR *filename, int append)
}
#else /* ! VXWORKS */
// This doesn't seem to work on VxWorks if the directory doesn't
- // exist: it creates a plain file instead of a directory. If the
+ // exist: it creates a plain file instead of a directory. If the
// directory does exist, it causes a wierd console error message
// about "cat: input error on standard input: Is a directory". So,
// VxWorks users must create the directory manually.
@@ -289,9 +295,7 @@ ACE_Test_Output::set_output (const ASYS_TCHAR *filename, int append)
this->output_file_->open (temp, flags);
if (this->output_file_->bad ())
- {
- return -1;
- }
+ return -1;
#else /* when ACE_LACKS_IOSTREAM_TOTALLY */
ASYS_TCHAR *fmode = 0;
if (append)