Skip to content

Commit df7b2a0

Browse files
committed
Disable isamax_ test on armv7l
1 parent 275acc7 commit df7b2a0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/runtests.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,14 @@ end
159159
run_all_tests(blastrampoline_link_name(), libdirs, :LP64, OpenBLAS32_jll.libopenblas_path)
160160

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

0 commit comments

Comments
 (0)