Mercurial > hg > orthanc
comparison UnitTestsSources/main.cpp @ 642:a5f291f05bba
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 29 Oct 2013 15:29:30 +0100 |
parents | 900274ed996f |
children | d76b747aec1b |
comparison
equal
deleted
inserted
replaced
640:6270ae2688d6 | 642:a5f291f05bba |
---|---|
520 ASSERT_EQ("ef", t[2]); | 520 ASSERT_EQ("ef", t[2]); |
521 ASSERT_EQ("", t[3]); | 521 ASSERT_EQ("", t[3]); |
522 } | 522 } |
523 | 523 |
524 | 524 |
525 TEST(Toolbox, Endianness) | |
526 { | |
527 #if defined(__powerpc__) || defined(__powerpc64__) | |
528 ASSERT_EQ(Endianness_Big, Toolbox::DetectEndianness()); | |
529 #endif | |
530 | |
531 #if defined(_WIN32) | |
532 ASSERT_EQ(Endianness_Little, Toolbox::DetectEndianness()); | |
533 #endif | |
534 | |
535 #if defined(__amd64__) || defined(__i386__) | |
536 ASSERT_EQ(Endianness_Little, Toolbox::DetectEndianness()); | |
537 #endif | |
538 } | |
539 | |
540 | |
541 | |
525 int main(int argc, char **argv) | 542 int main(int argc, char **argv) |
526 { | 543 { |
527 // Initialize Google's logging library. | 544 // Initialize Google's logging library. |
528 FLAGS_logtostderr = true; | 545 FLAGS_logtostderr = true; |
529 FLAGS_minloglevel = 0; | 546 FLAGS_minloglevel = 0; |