summaryrefslogtreecommitdiff
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
commitdf7e1509977ee7c43b7d814ed30e1f4f4de9e4f5 (patch)
tree34804bffdc8248df23d64a2dcff574912e09fc95
parentdddb4a9e717489db02bf98afbd36a960c48d1ed1 (diff)
downloadATCD-df7e1509977ee7c43b7d814ed30e1f4f4de9e4f5.tar.gz
ChangeLogTag: Thu Jun 16 13:55:57 UTC 2011 Jeff Parsons <j.parsons@vanderbilt.edu>
-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 ();