eliaskosunen/scnlib

Some tests failed on Big Endian architecture

xvitaly opened this issue · 1 comments

Test project /builddir/build/BUILD/scnlib-1.0/redhat-linux-build
      Start  1: test
      Start  2: empty
 1/30 Test  #1: test .............................   Passed    0.00 sec
      Start  3: fwd
 2/30 Test  #2: empty ............................   Passed    0.00 sec
      Start  4: util
 3/30 Test  #3: fwd ..............................   Passed    0.00 sec
      Start  5: small-vector
 4/30 Test  #4: util .............................   Passed    0.00 sec
      Start  6: string-view
 5/30 Test  #5: small-vector .....................   Passed    0.00 sec
      Start  7: reader
 6/30 Test  #6: string-view ......................   Passed    0.00 sec
      Start  8: range
 7/30 Test  #7: reader ...........................   Passed    0.00 sec
      Start  9: locale
 8/30 Test  #8: range ............................   Passed    0.00 sec
      Start 10: std-string-view
 9/30 Test  #9: locale ...........................   Passed    0.00 sec
      Start 11: pmr-string
10/30 Test #10: std-string-view ..................   Passed    0.00 sec
      Start 12: wrap
11/30 Test #11: pmr-string .......................   Passed    0.00 sec
      Start 13: utf8
12/30 Test #12: wrap .............................   Passed    0.00 sec
      Start 14: utf16
13/30 Test #13: utf8 .............................   Passed    0.00 sec
      Start 15: result
14/30 Test #14: utf16 ............................   Passed    0.00 sec
      Start 16: istream
15/30 Test #15: result ...........................   Passed    0.00 sec
      Start 17: format
16/30 Test #17: format ...........................   Passed    0.00 sec
      Start 18: tuple-return
17/30 Test #16: istream ..........................   Passed    0.01 sec
      Start 19: char
18/30 Test #18: tuple-return .....................   Passed    0.00 sec
      Start 20: integer
19/30 Test #20: integer ..........................***Failed    0.00 sec
[doctest] doctest version is "2.4.8"
[doctest] run with "--help" for options
===============================================================================
/builddir/build/BUILD/scnlib-1.0/test/integer.cpp:822:
TEST CASE:  consistency
  simple
/builddir/build/BUILD/scnlib-1.0/test/integer.cpp:822: ERROR: test case THREW exception: exception thrown in subcase - will translate later when the whole test case has been exited (cannot translate while there is an active exception)
===============================================================================
/builddir/build/BUILD/scnlib-1.0/test/integer.cpp:822:
TEST CASE:  consistency
DEEPEST SUBCASE STACK REACHED (DIFFERENT FROM THE CURRENT ONE):
  simple
/builddir/build/BUILD/scnlib-1.0/test/integer.cpp:822: ERROR: test case THREW exception: basic_string::substr: __pos (which is 12884901888) > this->size() (which is 7)
===============================================================================
[doctest] test cases:  38 |  37 passed | 1 failed | 0 skipped
[doctest] assertions: 941 | 941 passed | 0 failed |
[doctest] Status: FAILURE!
      Start 21: float
20/30 Test #19: char .............................   Passed    0.01 sec
      Start 22: string
21/30 Test #22: string ...........................   Passed    0.00 sec
      Start 23: string-set
22/30 Test #21: float ............................***Failed    0.01 sec
[doctest] doctest version is "2.4.8"
[doctest] run with "--help" for options
===============================================================================
/builddir/build/BUILD/scnlib-1.0/test/floating.cpp:285:
TEST CASE:  consistency
  simple
/builddir/build/BUILD/scnlib-1.0/test/floating.cpp:285: ERROR: test case THREW exception: exception thrown in subcase - will translate later when the whole test case has been exited (cannot translate while there is an active exception)
===============================================================================
/builddir/build/BUILD/scnlib-1.0/test/floating.cpp:285:
TEST CASE:  consistency
DEEPEST SUBCASE STACK REACHED (DIFFERENT FROM THE CURRENT ONE):
  simple
/builddir/build/BUILD/scnlib-1.0/test/floating.cpp:285: ERROR: test case THREW exception: basic_string::substr: __pos (which is 17179869184) > this->size() (which is 9)
===============================================================================
[doctest] test cases:  13 |  12 passed | 1 failed | 0 skipped
[doctest] assertions: 247 | 247 passed | 0 failed |
[doctest] Status: FAILURE!
      Start 24: buffer
23/30 Test #23: string-set .......................   Passed    0.00 sec
      Start 25: bool
24/30 Test #25: bool .............................   Passed    0.00 sec
      Start 26: usertype
25/30 Test #24: buffer ...........................   Passed    0.01 sec
      Start 27: list
26/30 Test #26: usertype .........................   Passed    0.00 sec
      Start 28: each-integer
27/30 Test #27: list .............................   Passed    0.00 sec
      Start 29: each-char
28/30 Test #29: each-char ........................   Passed    0.00 sec
      Start 30: file
29/30 Test #30: file .............................   Passed    0.00 sec
30/30 Test #28: each-integer .....................   Passed    0.06 sec
93% tests passed, 2 tests failed out of 30

Thanks for reporting, luckily this was just an issue with the tests -- fixed in 056e568