Execute bdk_ffi_test via valgrind

This commit is contained in:
Steve Myers 2021-06-14 14:18:16 -07:00
parent e266634560
commit 4682fb3ec8
2 changed files with 7 additions and 4 deletions

View File

@ -5,8 +5,8 @@ cargo test --features c-headers -- generate_headers
# cc
export LD_LIBRARY_PATH=`pwd`/target/debug
cc cc/bdk_ffi_test.c -o cc/bdk_ffi_test -L target/debug -l bdk_ffi -l pthread -l dl -l m
#valgrind --leak-check=full cc/bdk_ffi_test
cc/bdk_ffi_test
valgrind --leak-check=full cc/bdk_ffi_test
#cc/bdk_ffi_test
# bdk-kotlin
mkdir -p bdk-kotlin/jar/libs/x86_64_linux

View File

@ -35,8 +35,11 @@ int main (int argc, char const * const argv[])
// test free_wallet NULL doesn't crash
free_wallet(NULL);
// verify sync_wallet after sync_wallet fails (double free detected, core dumped)
////sync_wallet(&wallet);
// verify free_wallet after free_wallet fails (core dumped)
////free_wallet(wallet);
// verify sync_wallet after free_wallet fails (core dumped)
////sync_wallet(wallet);
}
return EXIT_SUCCESS;