fix: locate lib in current directory

not using ./ was causing dlopen not to found the lib
This commit is contained in:
youben11
2022-04-05 10:33:02 +01:00
committed by Ayoub Benaissa
parent 2ded4b6f43
commit 4ced7c567a

View File

@@ -248,13 +248,13 @@ def test_jit_compile_and_run(mlir_input, args, expected_result):
@pytest.mark.parametrize("mlir_input, args, expected_result", end_to_end_fixture)
def test_lib_compile_and_run(mlir_input, args, expected_result):
engine = LibrarySupport.new("py_test_lib_compile_and_run")
engine = LibrarySupport.new("./py_test_lib_compile_and_run")
compile_and_run(engine, mlir_input, args, expected_result)
@pytest.mark.parametrize("mlir_input, args, expected_result", end_to_end_fixture)
def test_lib_compile_reload_and_run(mlir_input, args, expected_result):
engine = LibrarySupport.new("test_lib_compile_reload_and_run")
engine = LibrarySupport.new("./test_lib_compile_reload_and_run")
# Here don't save compilation result, reload
engine.compile(mlir_input)
compilation_result = engine.reload()