[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi/libHLA TestHLAtypes.cc
From: |
certi-cvs |
Subject: |
[certi-cvs] certi/libHLA TestHLAtypes.cc |
Date: |
Tue, 18 Nov 2008 16:39:02 +0000 |
CVSROOT: /cvsroot/certi
Module name: certi
Changes by: Petr Gotthard <gotthardp> 08/11/18 16:39:02
Modified files:
libHLA : TestHLAtypes.cc
Log message:
Print the host byte-order before tests.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libHLA/TestHLAtypes.cc?cvsroot=certi&r1=1.1&r2=1.2
Patches:
Index: TestHLAtypes.cc
===================================================================
RCS file: /cvsroot/certi/certi/libHLA/TestHLAtypes.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- TestHLAtypes.cc 6 Nov 2008 16:18:38 -0000 1.1
+++ TestHLAtypes.cc 18 Nov 2008 16:39:02 -0000 1.2
@@ -11,7 +11,7 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
-// $Id: TestHLAtypes.cc,v 1.1 2008/11/06 16:18:38 gotthardp Exp $
+// $Id: TestHLAtypes.cc,v 1.2 2008/11/18 16:39:02 gotthardp Exp $
// ----------------------------------------------------------------------------
#include <memory>
@@ -185,6 +185,15 @@
{
int result = 0;
+ std::cerr << "Host byte-order: "
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+ << "__LITTLE_ENDIAN" << std::endl;
+#elif __BYTE_ORDER == __BIG_ENDIAN
+ << "__BIG_ENDIAN" << std::endl;
+#else
+ << "(unknown)" << std::endl;
+#endif
+
result += test1();
result += test3();
result += test4();
@@ -194,4 +203,4 @@
return result;
}
-// $Id: TestHLAtypes.cc,v 1.1 2008/11/06 16:18:38 gotthardp Exp $
+// $Id: TestHLAtypes.cc,v 1.2 2008/11/18 16:39:02 gotthardp Exp $
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [certi-cvs] certi/libHLA TestHLAtypes.cc,
certi-cvs <=