summaryrefslogtreecommitdiff
path: root/tests/Handle_Set_Test.cpp
diff options
context:
space:
mode:
authorcdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-20 23:25:20 +0000
committercdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-20 23:25:20 +0000
commit249860b2bfef3f0207e8f8de9a32352be0620da2 (patch)
treef80d38eee195dcdbf5291e01e4948e767b947b42 /tests/Handle_Set_Test.cpp
parent0b7e0519e868d45bf4da884b6741bfc20652ed3b (diff)
downloadATCD-249860b2bfef3f0207e8f8de9a32352be0620da2.tar.gz
fixed remaining tests with fixable diab compiler workarounds
Diffstat (limited to 'tests/Handle_Set_Test.cpp')
-rw-r--r--tests/Handle_Set_Test.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/Handle_Set_Test.cpp b/tests/Handle_Set_Test.cpp
index cb8a58942af..0fbf86f8da0 100644
--- a/tests/Handle_Set_Test.cpp
+++ b/tests/Handle_Set_Test.cpp
@@ -99,7 +99,14 @@ test_boundaries (void)
while ((handle = i1 ()) != ACE_INVALID_HANDLE)
{
- ACE_ASSERT (ASYS_TEXT ("this shouldn't get called since the set is empty!\n") == 0);
+#if defined (ACE_PSOS_DIAB)
+ // workaround for some compiler confusion with strings in assertions
+ const int SET_IS_EMPTY_SO_SHOULD_NOT_SEE_THIS = 1;
+ ACE_ASSERT (0 == SET_IS_EMPTY_SO_SHOULD_NOT_SEE_THIS);
+#else /* ! defined (ACE_PSOS_DIAB) */
+ ACE_ASSERT (0 == ASYS_TEXT ("this shouldn't get called since "
+ "the set is empty!\n"));
+#endif /* defined (ACE_PSOS_DIAB) */
}
// Insert the vector of HANDLEs into the set.
@@ -118,7 +125,7 @@ test_boundaries (void)
while ((handle = i2 ()) != ACE_INVALID_HANDLE)
{
int done = set.remove(handle);
- ACE_ASSERT(done == 0);
+ ACE_ASSERT (done == 0);
count++;
}
@@ -211,4 +218,3 @@ template class ACE_Unbounded_Set_Iterator<ACE_HANDLE>;
#pragma instantiate ACE_Node<ACE_HANDLE>
# endif
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-