Skip to content

Commit 9c9a73f

Browse files
author
Kjell Ahlstedt
committed
Add tests/memleakcheck.sh
This shell script runs the test cases with valgrind, searching for memory leaks. Bug 775871
1 parent 404a79c commit 9c9a73f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/memleakcheck.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
# Run all libsigc++ tests with valgrind, searching for memory leaks.
4+
# Execute this script in the tests directory.
5+
# valgrind --leak-check=full .libs/lt-test_*
6+
7+
for testprog in test_accum_iter test_accumulated test_bind test_bind_as_slot \
8+
test_bind_ref test_bind_refptr test_bind_return test_compose \
9+
test_copy_invalid_slot test_cpp11_lambda test_custom test_disconnect \
10+
test_disconnect_during_emit test_exception_catch test_hide \
11+
test_limit_reference test_member_method_trait test_mem_fun test_ptr_fun \
12+
test_retype test_retype_return test_signal test_signal_move test_size \
13+
test_slot test_slot_disconnect test_slot_move test_trackable \
14+
test_trackable_move test_track_obj test_tuple_cdr test_tuple_end \
15+
test_tuple_for_each test_tuple_start test_tuple_transform_each \
16+
test_visit_each test_visit_each_trackable test_weak_raw_ptr
17+
do
18+
echo ================
19+
echo === $testprog
20+
echo ================
21+
valgrind --leak-check=full .libs/lt-$testprog
22+
done
23+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy