From d183fcdf985b0a2c52c16d0ff2a77beed30c89fb Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Thu, 3 Oct 2024 14:11:48 -0400 Subject: [PATCH] Fix error when running tests with emacs --- test/clj/coffi/ffi_test.clj | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/test/clj/coffi/ffi_test.clj b/test/clj/coffi/ffi_test.clj index d45e3ae..b462191 100644 --- a/test/clj/coffi/ffi_test.clj +++ b/test/clj/coffi/ffi_test.clj @@ -62,9 +62,11 @@ (t/deftest can-call-with-trailing-string-arg (t/is - (= - ((ffi/cfn "test_call_with_trailing_string_arg" - [::mem/int ::mem/int ::mem/c-string] - ::mem/void) - 1 2 "third arg")))) - + (= (try ((ffi/cfn "test_call_with_trailing_string_arg" + [::mem/int ::mem/int ::mem/c-string] + ::mem/void) + 1 2 "third arg") + :ok + (catch Throwable _t + :err)) + :ok)))