From 642dc36ecb85c239220bb6485e94359aa218b6be Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 21 Jan 2015 13:46:17 +0100 Subject: [PATCH] Tests: Fix valgrind tests Issue was introduced with 5a5acd664ee16bf50067492da541a9d8355c3c36 Change-Id: I30ed199e7471cbb71bd185c6a6e1db223339da75 Reviewed-by: hjk --- tests/auto/valgrind/memcheck/testrunner.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/auto/valgrind/memcheck/testrunner.cpp b/tests/auto/valgrind/memcheck/testrunner.cpp index 5b5b7e4d02a..344a1a75433 100644 --- a/tests/auto/valgrind/memcheck/testrunner.cpp +++ b/tests/auto/valgrind/memcheck/testrunner.cpp @@ -358,7 +358,7 @@ void TestRunner::uninit1() const Frame frame = stack.frames().first(); QCOMPARE(frame.functionName(), QLatin1String("main")); - QCOMPARE(frame.line(), 6 + HEADER_LENGTH); + QCOMPARE(frame.line(), 4 + HEADER_LENGTH); QCOMPARE(frame.object(), binary); QCOMPARE(frame.file(), QLatin1String("main.cpp")); @@ -372,7 +372,7 @@ void TestRunner::uninit1() const Frame frame = stack.frames().first(); QCOMPARE(frame.functionName(), QLatin1String("main")); - QCOMPARE(frame.line(), 4 + HEADER_LENGTH); + QCOMPARE(frame.line(), 2 + HEADER_LENGTH); QCOMPARE(frame.object(), binary); QCOMPARE(frame.file(), QLatin1String("main.cpp")); @@ -403,7 +403,7 @@ void TestRunner::uninit2() const Frame frame = stack.frames().first(); QCOMPARE(frame.functionName(), QLatin1String("main")); - QCOMPARE(frame.line(), 6 + HEADER_LENGTH); + QCOMPARE(frame.line(), 4 + HEADER_LENGTH); QCOMPARE(frame.object(), binary); QCOMPARE(frame.file(), QLatin1String("main.cpp")); @@ -417,7 +417,7 @@ void TestRunner::uninit2() const Frame frame = stack.frames().first(); QCOMPARE(frame.functionName(), QLatin1String("main")); - QCOMPARE(frame.line(), 4 + HEADER_LENGTH); + QCOMPARE(frame.line(), 2 + HEADER_LENGTH); QCOMPARE(frame.object(), binary); QCOMPARE(frame.file(), QLatin1String("main.cpp")); @@ -436,7 +436,7 @@ void TestRunner::uninit2() const Frame frame = stack.frames().first(); QCOMPARE(frame.functionName(), QLatin1String("main")); - QCOMPARE(frame.line(), 6 + HEADER_LENGTH); + QCOMPARE(frame.line(), 4 + HEADER_LENGTH); QCOMPARE(frame.object(), binary); QCOMPARE(frame.file(), QLatin1String("main.cpp")); @@ -467,7 +467,7 @@ void TestRunner::uninit3() const Frame frame = stack.frames().first(); QCOMPARE(frame.functionName(), QLatin1String("main")); - QCOMPARE(frame.line(), 6 + HEADER_LENGTH); + QCOMPARE(frame.line(), 4 + HEADER_LENGTH); QCOMPARE(frame.object(), binary); QCOMPARE(frame.file(), QLatin1String("main.cpp")); @@ -481,7 +481,7 @@ void TestRunner::uninit3() const Frame frame = stack.frames().first(); QCOMPARE(frame.functionName(), QLatin1String("main")); - QCOMPARE(frame.line(), 4 + HEADER_LENGTH); + QCOMPARE(frame.line(), 2 + HEADER_LENGTH); QCOMPARE(frame.object(), binary); QCOMPARE(frame.file(), QLatin1String("main.cpp")); @@ -500,7 +500,7 @@ void TestRunner::uninit3() const Frame frame = stack.frames().first(); QCOMPARE(frame.functionName(), QLatin1String("main")); - QCOMPARE(frame.line(), 6 + HEADER_LENGTH); + QCOMPARE(frame.line(), 4 + HEADER_LENGTH); QCOMPARE(frame.object(), binary); QCOMPARE(frame.file(), QLatin1String("main.cpp"));