-
Notifications
You must be signed in to change notification settings - Fork 494
valgrind support for unit tests #1839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Build SUCCESS, the tests were executed on test branch: master and test suite: functions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement.
I would make a note about cmake, it is possible to trigger the test from make command:
make ExperimentalMemCheck
Of course this calls in the background the ctest -T memcheck
.
lib/stats/tests/test_stats_query.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove.
Signed-off-by: bkil-syslogng <[email protected]>
7c71d1e
to
7a2f130
Compare
Build SUCCESS, the tests were executed on test branch: master and test suite: functions |
Signed-off-by: bkil-syslogng <[email protected]>
Signed-off-by: Antal Nemes <[email protected]>
One cannot deserialize into a cleared message: the deserialization code always allocates new array for sdata, while clear only sets the number of stored sdata to 0, leaving the pointer alone. An assert is added to the deserialization code to make this hidden dependency sure. Signed-off-by: Antal Nemes <[email protected]>
Appending null to g_string in single cluster case. "" should be used in the cluster name instead of NULL. Signed-off-by: Antal Nemes <[email protected]>
Signed-off-by: bkil-syslogng <[email protected]>
Usage: make check-valgrind-tool (optional VALGRIND_TOOL=memcheck) Signed-off-by: bkil-syslogng <[email protected]>
Execution: ctest -T memcheck Signed-off-by: Antal Nemes <[email protected]>
7a2f130
to
b549709
Compare
Build SUCCESS, the tests were executed on test branch: master and test suite: functions |
This pull request is the continuation of #1080. Thank you @bkil-syslogng for the investigation and putting together the original pull request.
I moved most of the commits from the original pull request here. One notable exception is the travis part. Unfortunately the valgrind execution of the unit test set is too long to execute in travis.
Besides autotools, cmake support is added as well.
Usage:
autotools
cmake
After the usual compile: one can execute