diff --git a/test/testcmdlineparser.cpp b/test/testcmdlineparser.cpp index 04c6f25a0..1cf4e4765 100644 --- a/test/testcmdlineparser.cpp +++ b/test/testcmdlineparser.cpp @@ -898,6 +898,7 @@ private: REDIRECT; const char *argv[] = {"cppcheck", "--errorlist"}; ASSERT(defParser.ParseFromArgs(2, argv)); + ASSERT(defParser.GetShowErrorMessages()); } void errorlistverbose1() {