Skip to content

Commit

Permalink
Disable isamax_ test on armv7l
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jul 31, 2024
1 parent df07df5 commit 01ff5d4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,14 @@ end
run_all_tests(blastrampoline_link_name(), libdirs, :LP64, OpenBLAS32_jll.libopenblas_path)

# Test that setting bad `LBT_FORCE_*` values actually breaks things
withenv("LBT_FORCE_INTERFACE" => "ILP64") do
# `max_idx: 2` is incorrect, it's what happens when ILP64 data is given to an LP64 backend
isamax_fail = ("isamax_test", ["max_idx: 2"], true)
run_test(isamax_fail, blastrampoline_link_name(), libdirs, :ILP64, OpenBLAS32_jll.libopenblas_path)
# but only on non-armv7l, because our `isamax` test is doubly broken there, due to a
# `int64_t` return being passed on the stack, thus being filled with half trash.
if Sys.ARCH != :arm
withenv("LBT_FORCE_INTERFACE" => "ILP64") do
# `max_idx: 2` is incorrect, it's what happens when ILP64 data is given to an LP64 backend
isamax_fail = ("isamax_test", ["max_idx: 2"], true)
run_test(isamax_fail, blastrampoline_link_name(), libdirs, :ILP64, OpenBLAS32_jll.libopenblas_path)
end
end
end

Expand Down

0 comments on commit 01ff5d4

Please sign in to comment.