summaryrefslogtreecommitdiff
path: root/tests/Malloc_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-10-13 15:14:21 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-10-13 15:14:21 +0000
commita4d91e2215e7061b57b44471d5cf377bdec75bb6 (patch)
tree042db8c7f05d56b898d4ae30154054cedcf067fd /tests/Malloc_Test.cpp
parentf7fa4e8d81ca080e2af7dacf8c11bf9878247f43 (diff)
downloadATCD-a4d91e2215e7061b57b44471d5cf377bdec75bb6.tar.gz
ChangeLogTag: Wed Oct 13 10:11:47 1999 David L. Levine <levine@cs.wustl.edu>
Diffstat (limited to 'tests/Malloc_Test.cpp')
-rw-r--r--tests/Malloc_Test.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/Malloc_Test.cpp b/tests/Malloc_Test.cpp
index 19aa4f746e0..c95b3a63b90 100644
--- a/tests/Malloc_Test.cpp
+++ b/tests/Malloc_Test.cpp
@@ -29,7 +29,7 @@ USELIB("..\ace\aced.lib");
//---------------------------------------------------------------------------
#endif /* defined(__BORLANDC__) && __BORLANDC__ >= 0x0530 */
-#if !defined (__Lynx__) || !defined (ACE_LACKS_FORK) || defined (ACE_WIN32)
+#if !defined (__Lynx__) && (!defined (ACE_LACKS_FORK) || defined (ACE_WIN32))
typedef ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Process_Mutex> MALLOC;
@@ -150,7 +150,8 @@ print (const char *process_name,
t->i2_,
t->i3_));
ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("*t->bpl_ = %d, t->long_test_->array_[0] = %d\n>>>>\n"),
+ ASYS_TEXT ("*t->bpl_ = %d, t->long_test_->array_[0] = ")
+ ASYS_TEXT ("%d\n>>>>\n"),
*t->long_test_->bpl_,
t->long_test_->array_[0]));
}
@@ -205,7 +206,7 @@ main (int argc, ASYS_TCHAR *[])
// No arguments means we're the parent process.
ACE_Process_Options options (1);
- options.command_line (ACE_TEXT (".")
+ options.command_line (ACE_TEXT (".")
ACE_DIRECTORY_SEPARATOR_STR
ACE_TEXT ("Malloc_Test")
ACE_PLATFORM_EXE_SUFFIX
@@ -216,7 +217,8 @@ main (int argc, ASYS_TCHAR *[])
ACE_ASSERT (data != 0);
ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("(%P) PARENT allocator at = %x, data allocated at %x\n"),
+ ASYS_TEXT ("(%P) PARENT allocator at = %x, ")
+ ASYS_TEXT ("data allocated at %x\n"),
myalloc,
data));
myalloc->dump ();
@@ -247,8 +249,9 @@ main (int argc, ASYS_TCHAR *[])
ACE_ASSERT (result != -1);
ACE_DEBUG ((LM_DEBUG,
- ASYS_TEXT ("(%P) CHILD allocator at = %x, data allocated at %x\n"),
- myalloc,
+ ASYS_TEXT ("(%P) CHILD allocator at = %x, ")
+ ASYS_TEXT ("data allocated at %x\n"),
+ myalloc,
data));
myalloc->dump ();
child ();
@@ -288,4 +291,4 @@ main (int, ASYS_TCHAR *[])
ACE_END_TEST;
return 0;
}
-#endif /* !defined (__Lynx__) || !defined (ACE_LACKS_FORK) || defined (ACE_WIN32) */
+#endif /* ! __Lynx__ && (! ACE_LACKS_FORK || ACE_WIN32) */