diff options
Diffstat (limited to 'tests/Alt_Mapping/ub_struct_seq.cpp')
-rw-r--r-- | tests/Alt_Mapping/ub_struct_seq.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/Alt_Mapping/ub_struct_seq.cpp b/tests/Alt_Mapping/ub_struct_seq.cpp index 946f29bbed3..87b1dcb498b 100644 --- a/tests/Alt_Mapping/ub_struct_seq.cpp +++ b/tests/Alt_Mapping/ub_struct_seq.cpp @@ -1,4 +1,3 @@ -// $Id$ // ============================================================================ // @@ -17,6 +16,7 @@ // // ============================================================================ + #include "helper.h" #include "ub_struct_seq.h" @@ -54,7 +54,7 @@ Test_Unbounded_Struct_Sequence::init_parameters (Alt_Mapping_ptr) // set the length of the sequence this->in_.resize (len); this->inout_.resize (len); - + // Now set each individual element. for (CORBA::ULong i = 0; i < this->in_.size (); i++) { @@ -63,7 +63,7 @@ Test_Unbounded_Struct_Sequence::init_parameters (Alt_Mapping_ptr) this->in_[i] = gen->gen_fixed_struct (); this->inout_[i] = gen->gen_fixed_struct (); } - + return 0; } @@ -73,7 +73,7 @@ Test_Unbounded_Struct_Sequence::reset_parameters (void) this->inout_.clear (); this->out_.clear (); this->ret_.clear (); - + return 0; } @@ -134,15 +134,15 @@ Test_Unbounded_Struct_Sequence::compare ( { ACE_CDR::ULong s1v = s1.capacity (); ACE_CDR::ULong s2v = s2.capacity (); - + if (s1v != s2v) { return false; } - + s1v = s1.size (); - s2v = s2.size (); - + s2v = s2.size (); + if (s1v != s2v) { return false; @@ -157,9 +157,9 @@ Test_Unbounded_Struct_Sequence::compare ( || vs1.c != vs2.c || vs1.s != vs2.s || vs1.o != vs2.o - || vs1.f != vs2.f + || !ACE::is_equal (vs1.f, vs2.f) || vs1.b != vs2.b - || vs1.d != vs2.d ) + || !ACE::is_equal (vs1.d, vs2.d)) return false; } @@ -176,7 +176,7 @@ Test_Unbounded_Struct_Sequence::print_sequence ( s.capacity (), s.size ())); ACE_DEBUG ((LM_DEBUG, "Elements -\n")); - + for (CORBA::ULong i = 0; i < s.size (); i++) { const Alt_Mapping::Fixed_Struct& vs = s[i]; |