Skip to content

Commit

Permalink
Fix test 5 #34
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed May 5, 2017
1 parent d3d3bf6 commit 7122b35
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions test/glpk_tst_5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,21 @@ function glpk_tst_5()
finally
isfile(cnfcopy) && rm(cnfcopy)
end
@test GLPK.minisat1(lp) == 0
if GLPK.version() >= (4, 57)
# in api/minisat1.c, there is:
#if (sizeof(void *) != sizeof(int))
#{ xprintf("glp_minisat1: sorry, MiniSat solver is not supported "
# "on 64-bit platforms\n");
# ret = GLP_EFAIL;
# goto done;
#}
expected_ret = GLPK.EFAIL
else
expected_ret = 0
end
@test GLPK.minisat1(lp) == expected_ret

@test GLPK.intfeas1(lp, 0, 0) == 0
@test GLPK.intfeas1(lp, 0, 0) == expected_ret
end

# Test is failing on GLPK 4.61 for unknown reason
println("Test disabled")
#glpk_tst_5()
glpk_tst_5()

0 comments on commit 7122b35

Please sign in to comment.