Execute bdk_ffi_test via valgrind
This commit is contained in:
parent
e266634560
commit
4682fb3ec8
4
build.sh
4
build.sh
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user