We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7fb124 commit 8e12a46Copy full SHA for 8e12a46
test/Makefile
@@ -26,7 +26,7 @@ CFLAGS+= -DBOOST_TEST_DYN_LINK -lboost_unit_test_framework
26
all: test
27
28
mem: test
29
- $(LIB_PATH) valgrind --leak-check=full --track-origins=yes ./test
+ $(LIB_PATH) valgrind --leak-check=full --track-origins=yes --show-leak-kinds=all ./test
30
31
debug: test
32
$(LIB_PATH) $(GDB) ./test
test/test.cpp
@@ -7,6 +7,18 @@
7
#include "test.h"
8
#include <boost/test/unit_test.hpp>
9
10
+struct TestCleanup {
11
+ TestCleanup() {
12
+ printf("global setup\n");
13
+ }
14
+ ~TestCleanup() {
15
+ printf("global teardown\n");
16
+ ds3_cleanup();
17
18
+};
19
+
20
+BOOST_GLOBAL_FIXTURE( TestCleanup );
21
22
ds3_client* get_client() {
23
24
ds3_client* client;
0 commit comments