Skip to content

assumptions and fs tests fail on macOS PPC #97

@barracuda156

Description

@barracuda156

I am bringing clingcon to Macports, where we support all range of macOS including PowerPC systems. I ran test suite on 10.6.8 in Rosetta, and two tests failed:

[100%] Built target test_clingcon
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_clingcon/clingcon/work/build'
/opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_PPCRosettaPorts_math_clingcon/clingcon/work/build/CMakeFiles 0
make: Leaving directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_clingcon/clingcon/work/build'
--->  Testing clingcon
Executing:  cd "/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_clingcon/clingcon/work/build/bin" && ./test_clingcon 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_clingcon is a Catch v2.11.3 host application.
Run with -? for options

-------------------------------------------------------------------------------
assumptions
-------------------------------------------------------------------------------
/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_clingcon/clingcon/work/clingcon-5.2.0/libclingcon/tests/assumptions.cc:81
...............................................................................

/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_clingcon/clingcon/work/clingcon-5.2.0/libclingcon/tests/assumptions.cc:95: FAILED:
  REQUIRE( bound(ctl) == 2 )
with expansion:
  1 == 2

-------------------------------------------------------------------------------
fs
  fse
-------------------------------------------------------------------------------
/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_clingcon/clingcon/work/clingcon-5.2.0/libclingcon/tests/fs.cc:123
...............................................................................

/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_clingcon/clingcon/work/clingcon-5.2.0/libclingcon/tests/fs.cc:125: FAILED:
  REQUIRE( solve(FSB + FSE + FSI, 0, 11) == SOL11 )
with expansion:
  {  }
  ==
  { "permutation(a,c) permutation(b,a) (a,1)=1 (a,2)=7 (b,1)=0 (b,2)=1 (c,1)=4
  (c,2)=11", "permutation(a,c) permutation(b,a) (a,1)=1 (a,2)=7 (b,1)=0 (b,2)=1
  (c,1)=5 (c,2)=11", "permutation(a,c) permutation(b,a) (a,1)=1 (a,2)=7 (b,1)=0
  (b,2)=1 (c,1)=6 (c,2)=11", "permutation(a,c) permutation(b,a) (a,1)=2 (a,2)=7
  (b,1)=0 (b,2)=1 (c,1)=5 (c,2)=11", "permutation(a,c) permutation(b,a) (a,1)=2
  (a,2)=7 (b,1)=0 (b,2)=1 (c,1)=6 (c,2)=11", "permutation(a,c) permutation(b,a)
  (a,1)=3 (a,2)=7 (b,1)=0 (b,2)=1 (c,1)=6 (c,2)=11" }

-------------------------------------------------------------------------------
fs
  fsd
-------------------------------------------------------------------------------
/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_clingcon/clingcon/work/clingcon-5.2.0/libclingcon/tests/fs.cc:128
...............................................................................

/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_clingcon/clingcon/work/clingcon-5.2.0/libclingcon/tests/fs.cc:130: FAILED:
  REQUIRE( solve(FSB + FSD + FSI, 0, 11) == SOL11 )
with expansion:
  {  }
  ==
  { "permutation(a,c) permutation(b,a) (a,1)=1 (a,2)=7 (b,1)=0 (b,2)=1 (c,1)=4
  (c,2)=11", "permutation(a,c) permutation(b,a) (a,1)=1 (a,2)=7 (b,1)=0 (b,2)=1
  (c,1)=5 (c,2)=11", "permutation(a,c) permutation(b,a) (a,1)=1 (a,2)=7 (b,1)=0
  (b,2)=1 (c,1)=6 (c,2)=11", "permutation(a,c) permutation(b,a) (a,1)=2 (a,2)=7
  (b,1)=0 (b,2)=1 (c,1)=5 (c,2)=11", "permutation(a,c) permutation(b,a) (a,1)=2
  (a,2)=7 (b,1)=0 (b,2)=1 (c,1)=6 (c,2)=11", "permutation(a,c) permutation(b,a)
  (a,1)=3 (a,2)=7 (b,1)=0 (b,2)=1 (c,1)=6 (c,2)=11" }

-------------------------------------------------------------------------------
fs
  fso
-------------------------------------------------------------------------------
/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_clingcon/clingcon/work/clingcon-5.2.0/libclingcon/tests/fs.cc:133
...............................................................................

/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_clingcon/clingcon/work/clingcon-5.2.0/libclingcon/tests/fs.cc:134: FAILED:
  REQUIRE( remove_bound(solve(FSO + FSE + FSI, -256, 256)) == SOL16 )
with expansion:
  {  }
  ==
  { "permutation(a,c) permutation(b,a) (a,1)=1 (a,2)=7 (b,1)=0 (b,2)=1 (c,1)=4
  (c,2)=11", "permutation(a,c) permutation(b,a) (a,1)=1 (a,2)=7 (b,1)=0 (b,2)=1
  (c,1)=5 (c,2)=11", "permutation(a,c) permutation(b,a) (a,1)=1 (a,2)=7 (b,1)=0
  (b,2)=1 (c,1)=6 (c,2)=11", "permutation(a,c) permutation(b,a) (a,1)=2 (a,2)=7
  (b,1)=0 (b,2)=1 (c,1)=5 (c,2)=11", "permutation(a,c) permutation(b,a) (a,1)=2
  (a,2)=7 (b,1)=0 (b,2)=1 (c,1)=6 (c,2)=11", "permutation(a,c) permutation(b,a)
  (a,1)=3 (a,2)=7 (b,1)=0 (b,2)=1 (c,1)=6 (c,2)=11", "permutation(b,c)
  permutation(c,a) (a,1)=6 (a,2)=12 (b,1)=0 (b,2)=1 (c,1)=1 (c,2)=7",
  "permutation(b,c) permutation(c,a) (a,1)=7 (a,2)=12 (b,1)=0 (b,2)=1 (c,1)=1
  (c,2)=7", "permutation(b,c) permutation(c,a) (a,1)=7 (a,2)=12 (b,1)=0 (b,2)=1
  (c,1)=2 (c,2)=7", "permutation(b,c) permutation(c,a) (a,1)=8 (a,2)=12 (b,1)=0
  (b,2)=1 (c,1)=1 (c,2)=7", "permutation(b,c) permutation(c,a) (a,1)=8 (a,2)=12
  (b,1)=0 (b,2)=1 (c,1)=2 (c,2)=7", "permutation(b,c) permutation(c,a) (a,1)=9
  (a,2)=12 (b,1)=0 (b,2)=1 (c,1)=1 (c,2)=7", "permutation(b,c) permutation(c,a)
  (a,1)=9 (a,2)=12 (b,1)=0 (b,2)=1 (c,1)=2 (c,2)=7" }

===============================================================================
test cases:   13 |   11 passed | 2 failed
assertions: 2355 | 2351 passed | 4 failed

Any suggestions how to fix that would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions