forked from qt-creator/qt-creator
debugger: add testcase for valgrind
Change-Id: I11caf760a2619fee88cfdc3568d533230b12a6c1 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user