Skip to content

Fix test failures on big endian architectures (s390x)

Mattias Ellert requested to merge ellert/HepMC3:endian into master
97% tests passed, 2 tests failed out of 70
Total Test time (real) = 150.69 sec
The following tests FAILED:
	 20 - testHEPEVTWrapper1 (Failed)
	 55 - memcheck_testHEPEVTWrapper1 (Failed)
Errors while running CTest
error: Bad exit status from /var/tmp/rpm-tmp.vsrbYS (%check)

18/70 Test #20: testHEPEVTWrapper1 ...........................***Failed    0.01 sec
 Event No.: 0
  Nr   Type   Parent(s)  Daughter(s)      Px       Py       Pz       E    Inv. M.
    1      1   0 -    0     0 -    0     0.75    -1.57    32.19    32.24     0.06
[ ... ]
   65   2212  18 -   18     0 -    0     0.00     0.00  7000.45  7000.00   -79.37
Run comparison
Run comparison
3/3-th strings are not equal testHEPEVTWrapper1output2.txt testHEPEVTWrapper1output3.txt
   ->E 0 32 65<-
   ->E 0 0 0<-
Run comparison
3/3-th strings are not equal testHEPEVTWrapper1output3.txt testHEPEVTWrapper1output4.txt
   ->E 0 0 0<-
   ->E 0 32 65<-
Run comparison
Run comparison

This will also fix issues on little endian architectures if nevhep or nhep is > 255, since the old code only considered the least significant byte in that case.

Merge request reports

Loading