Commit 84cce9dc authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: add testcase for valgrind



Change-Id: I11caf760a2619fee88cfdc3568d533230b12a6c1
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 103fc832
......@@ -62,7 +62,6 @@
// Default: 0
#define USE_EIGEN 0
////////////// No further global configuration below ////////////////
#if QT_SCRIPT_LIB
......@@ -3672,6 +3671,21 @@ namespace varargs {
} // namespace varargs
namespace valgrind {
void testLeak()
{
new int[100]; // Leaks intentionally.
}
void testValgrind()
{
testLeak();
}
} // namespace valgrind
namespace sanity {
// A very quick check.
......@@ -3707,6 +3721,7 @@ namespace sanity {
}
int main(int argc, char *argv[])
{
// For a very quick check, step into this one.
......@@ -3775,6 +3790,8 @@ int main(int argc, char *argv[])
qvariant::testQVariant();
qvector::testQVector();
valgrind::testValgrind();
// Third party data types.
boost::testBoost();
eigen::testEigen();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment