Skip to content

Commit

Permalink
Add valgrind supress files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tojaj committed Mar 21, 2013
1 parent 7816dc5 commit 8207498
Show file tree
Hide file tree
Showing 6 changed files with 1,626 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .valgrindrc
@@ -0,0 +1,2 @@
--memcheck:leak-check=full
--suppressions=./valgrind.supp
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -57,6 +57,17 @@ All unit tests run from librepo checkout dir

build/tests/test_main tests/test_data/

To check memoryleaks:

CK_FORK=no valgrind --leak-check=full build/tests/test_main tests/test_data/

Supress known still_reachable memory:

CK_FORK=no valgrind --leak-check=full --suppressions=still_reachable.supp build/tests/test_main tests/test_data/

Note: .valgrindrc file is present in checkoutdir, this file contains the settings:
`--memcheck:leak-check=full --suppressions=./valgrind.supp`

### Run (from your checkout dir) - Python unittests:

PYTHONPATH=`readlink -f ./build/librepo/python/` nosetests -s tests/python/tests/
Expand Down
2 changes: 1 addition & 1 deletion librepo/librepo.c
Expand Up @@ -34,7 +34,7 @@ lr_global_init()
DPRINTF("Librepo version: %d.%d.%d\n", LR_VERSION_MAJOR,
LR_VERSION_MINOR,
LR_VERSION_PATCH);
curl_global_init(CURL_GLOBAL_SSL);
curl_global_init(CURL_GLOBAL_ALL);
}

void
Expand Down

0 comments on commit 8207498

Please sign in to comment.