summaryrefslogtreecommitdiff
path: root/tests/test_config.h
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-06 07:40:53 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-06 07:40:53 +0000
commit98c5eab969ca66cce39a1eeff1b5710d7209bee2 (patch)
tree3f4fe64e9545ab86630c408b0f742646521199a9 /tests/test_config.h
parentcbe9fc5f261356531c6aa3c0591dad0078117e6a (diff)
downloadATCD-98c5eab969ca66cce39a1eeff1b5710d7209bee2.tar.gz
Added ios::trunc when ofstream.open'ing a file if we are not appending to it.
Diffstat (limited to 'tests/test_config.h')
-rw-r--r--tests/test_config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_config.h b/tests/test_config.h
index a9e806c3e66..47153a4b6c6 100644
--- a/tests/test_config.h
+++ b/tests/test_config.h
@@ -193,6 +193,8 @@ ACE_Test_Output::set_output (const char *filename, int append)
int flags = ios::out;
if (append)
flags |= ios::app;
+ else
+ flags |= ios::trunc;
this->output_file_.open (temp, flags);
if (this->output_file_.bad ())