summaryrefslogtreecommitdiff
path: root/TAO/tests/LongDouble
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2011-06-16 13:58:49 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2011-06-16 13:58:49 +0000
commitabb7352c70a96fce3c28b2e0b3a2f788f578da63 (patch)
tree34804bffdc8248df23d64a2dcff574912e09fc95 /TAO/tests/LongDouble
parent1730ffd526c233bf3aaa55f25dc39b1180fe7e92 (diff)
downloadATCD-abb7352c70a96fce3c28b2e0b3a2f788f578da63.tar.gz
ChangeLogTag: Thu Jun 16 13:55:57 UTC 2011 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/tests/LongDouble')
-rw-r--r--TAO/tests/LongDouble/client.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/TAO/tests/LongDouble/client.cpp b/TAO/tests/LongDouble/client.cpp
index 02fdbebed49..614ab5de181 100644
--- a/TAO/tests/LongDouble/client.cpp
+++ b/TAO/tests/LongDouble/client.cpp
@@ -59,22 +59,24 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
1);
}
- CORBA::LongDouble ld =
+ CORBA::LongDouble ldl =
longDoubleTest->get_long_double ();
+ long double ldh =
+ Global::get_long_double ();
- if (ld == Global::get_long_double ())
- {
- cout << "Received: " << ld << endl;
- }
- else
+ if (ldl > ldh || ldl < ldh)
{
ACE_ERROR ((LM_DEBUG,
"Client did not receive "
"expected CORBA::LongDouble\n"));
- cerr << "Received: " << ld << " instead of "
- << Global::get_long_double () << endl;
+ cerr << "Received: " << ldl << " instead of "
+ << ldh << endl;
status = 1;
}
+ else
+ {
+ cout << "Received: " << ldl << endl;
+ }
longDoubleTest->shutdown ();