Skip to content

Commit aa816fd

Browse files
committed
fix(test): use portable windows dll fixture
1 parent 8fc91ef commit aa816fd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/windows.bats

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ load bats_setup
3838
;;
3939
esac
4040
skip_if_systcc_execute_is_unavailable
41+
dll_source="${R}/libtcc.dll"
42+
[ -r "${dll_source}" ] || dll_source="/c/Windows/System32/kernel32.dll"
43+
[ -r "${dll_source}" ] || dll_source="/c/Windows/SysWOW64/kernel32.dll"
44+
[ -r "${dll_source}" ]
4145
mkdir -p "${TMP}/mq path"
42-
cp "${R}/libtcc.dll" "${TMP}/mq path/mqm.dll"
46+
cp "${dll_source}" "${TMP}/mq path/mqm.dll"
4347
run ${CJIT} --verb -L"${TMP}/mq path" -lmqm test/hello.c
4448
assert_success
4549
assert_output --partial 'Hello World!'

0 commit comments

Comments
 (0)