From 92e3e802fbeeab1d72f0abb090a2b36610fccdff Mon Sep 17 00:00:00 2001 From: PKEuS Date: Thu, 28 Jul 2016 20:59:09 +0200 Subject: [PATCH] Attempt to fix travis build and testrunner failure --- .travis_suppressions | 2 ++ test/testother.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis_suppressions b/.travis_suppressions index 2b8d75bad..3cbcd7020 100644 --- a/.travis_suppressions +++ b/.travis_suppressions @@ -3,6 +3,8 @@ redundantNextPrevious:test/testtoken.cpp simplePatternError:test/testtoken.cpp uselessAssignmentPtrArg:build/checkstl.cpp uselessAssignmentPtrArg:build/tokenize.cpp +passedByValue:build/symboldatabase.h +passedByValue:build/library.h *:gui/test* *:test/test.cxx *:test/cfg* diff --git a/test/testother.cpp b/test/testother.cpp index 0a2be3acd..e62758c93 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -1309,7 +1309,7 @@ private: ASSERT_EQUALS("", errout.str()); check("class Foo { static std::string s; };\nvoid f(const Foo foo) {}"); // Small class (static member) - ASSERT_EQUALS("[test.cpp:2]: (performance) Function parameter 'foo' should be passed by reference.\n", errout.str()); + ASSERT_EQUALS("", errout.str()); check("class X { std::string s; }; class Foo : X { };\nvoid f(const Foo foo) {}"); // Large class (inherited) ASSERT_EQUALS("[test.cpp:2]: (performance) Function parameter 'foo' should be passed by reference.\n", errout.str());