summaryrefslogtreecommitdiff
path: root/ACE/tests/Integer_Truncate_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/tests/Integer_Truncate_Test.cpp')
-rw-r--r--ACE/tests/Integer_Truncate_Test.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/ACE/tests/Integer_Truncate_Test.cpp b/ACE/tests/Integer_Truncate_Test.cpp
index 97f08a10d03..0a1952c4073 100644
--- a/ACE/tests/Integer_Truncate_Test.cpp
+++ b/ACE/tests/Integer_Truncate_Test.cpp
@@ -35,7 +35,7 @@ sizeof_from_lt_sizeof_to (void)
typedef signed char from_type;
typedef unsigned int to_type;
- ACE_ASSERT (sizeof (from_type) < sizeof (to_type));
+ ACE_TEST_ASSERT (sizeof (from_type) < sizeof (to_type));
from_type f =
ACE_Numeric_Limits<from_type>::max (); // Should not be truncated.
@@ -55,7 +55,7 @@ sizeof_from_lt_sizeof_to (void)
typedef unsigned char from_type;
typedef signed int to_type;
- ACE_ASSERT (sizeof (from_type) < sizeof (to_type));
+ ACE_TEST_ASSERT (sizeof (from_type) < sizeof (to_type));
from_type f =
ACE_Numeric_Limits<from_type>::max (); // Should not be truncated.
@@ -75,7 +75,7 @@ sizeof_from_lt_sizeof_to (void)
typedef signed char from_type;
typedef signed int to_type;
- ACE_ASSERT (sizeof (from_type) < sizeof (to_type));
+ ACE_TEST_ASSERT (sizeof (from_type) < sizeof (to_type));
from_type f1 = -1; // Should not be truncated.
from_type f2 =
@@ -97,7 +97,7 @@ sizeof_from_lt_sizeof_to (void)
typedef unsigned char from_type;
typedef unsigned int to_type;
- ACE_ASSERT (sizeof (from_type) < sizeof (to_type));
+ ACE_TEST_ASSERT (sizeof (from_type) < sizeof (to_type));
from_type f =
ACE_Numeric_Limits<from_type>::max (); // Should not be truncated.
@@ -117,7 +117,7 @@ sizeof_from_lt_sizeof_to (void)
success
? ACE_TEXT ("PASSED")
: ACE_TEXT ("FAILED")));
-
+
return success;
}
@@ -134,7 +134,7 @@ sizeof_from_eq_sizeof_to (void)
typedef signed int from_type;
typedef unsigned int to_type;
- ACE_ASSERT (sizeof (from_type) == sizeof (to_type));
+ ACE_TEST_ASSERT (sizeof (from_type) == sizeof (to_type));
from_type f1 = -1; // Should not be truncated.
from_type f2 =
@@ -156,7 +156,7 @@ sizeof_from_eq_sizeof_to (void)
typedef unsigned int from_type;
typedef signed int to_type;
- ACE_ASSERT (sizeof (from_type) == sizeof (to_type));
+ ACE_TEST_ASSERT (sizeof (from_type) == sizeof (to_type));
from_type f =
ACE_Numeric_Limits<from_type>::max (); // Should be truncated.
@@ -176,7 +176,7 @@ sizeof_from_eq_sizeof_to (void)
typedef signed int from_type;
typedef signed int to_type;
- ACE_ASSERT (sizeof (from_type) == sizeof (to_type));
+ ACE_TEST_ASSERT (sizeof (from_type) == sizeof (to_type));
from_type f1 = -1; // Should not be truncated.
from_type f2 =
@@ -198,7 +198,7 @@ sizeof_from_eq_sizeof_to (void)
typedef unsigned int from_type;
typedef unsigned int to_type;
- ACE_ASSERT (sizeof (from_type) == sizeof (to_type));
+ ACE_TEST_ASSERT (sizeof (from_type) == sizeof (to_type));
from_type f =
ACE_Numeric_Limits<from_type>::max (); // Should not be truncated.
@@ -235,7 +235,7 @@ sizeof_from_gt_sizeof_to (void)
typedef signed int from_type;
typedef unsigned char to_type;
- ACE_ASSERT (sizeof (from_type) > sizeof (to_type));
+ ACE_TEST_ASSERT (sizeof (from_type) > sizeof (to_type));
from_type f =
ACE_Numeric_Limits<from_type>::max (); // Should be truncated.
@@ -255,7 +255,7 @@ sizeof_from_gt_sizeof_to (void)
typedef unsigned int from_type;
typedef signed char to_type;
- ACE_ASSERT (sizeof (from_type) > sizeof (to_type));
+ ACE_TEST_ASSERT (sizeof (from_type) > sizeof (to_type));
from_type f =
ACE_Numeric_Limits<from_type>::max (); // Should be truncated.
@@ -275,7 +275,7 @@ sizeof_from_gt_sizeof_to (void)
typedef signed int from_type;
typedef signed char to_type;
- ACE_ASSERT (sizeof (from_type) > sizeof (to_type));
+ ACE_TEST_ASSERT (sizeof (from_type) > sizeof (to_type));
from_type f1 = -1; // Should not be truncated.
from_type f2 =
@@ -297,7 +297,7 @@ sizeof_from_gt_sizeof_to (void)
typedef unsigned int from_type;
typedef unsigned char to_type;
- ACE_ASSERT (sizeof (from_type) > sizeof (to_type));
+ ACE_TEST_ASSERT (sizeof (from_type) > sizeof (to_type));
from_type f =
ACE_Numeric_Limits<from_type>::max (); // Should be truncated.
@@ -353,7 +353,7 @@ int
run_main (int, ACE_TCHAR *[])
{
ACE_START_TEST (ACE_TEXT ("Integer_Truncate_Test"));
-
+
typedef bool (*test_func) ();
static test_func const tests[] =