3131#include " settings.h"
3232#include " standards.h"
3333#include " suppressions.h"
34- #include " timer.h"
3534#include " utils.h"
3635
3736#include < cstdio>
@@ -2193,21 +2192,21 @@ class TestCmdlineParser : public TestFixture {
21932192 REDIRECT;
21942193 const char * const argv[] = {" cppcheck" , " --showtime=summary" , " file.cpp" };
21952194 ASSERT_EQUALS_ENUM (CmdLineParser::Result::Success, parseFromArgs (argv));
2196- ASSERT (settings-> showtime == ShowTime::SUMMARY);
2195+ ASSERT_EQUALS_ENUM (Settings:: ShowTime::SUMMARY, settings-> showtime );
21972196 }
21982197
21992198 void showtimeFile () {
22002199 REDIRECT;
22012200 const char * const argv[] = {" cppcheck" , " --showtime=file" , " file.cpp" };
22022201 ASSERT_EQUALS_ENUM (CmdLineParser::Result::Success, parseFromArgs (argv));
2203- ASSERT (settings-> showtime == ShowTime::FILE);
2202+ ASSERT_EQUALS_ENUM (Settings:: ShowTime::FILE, settings-> showtime );
22042203 }
22052204
22062205 void showtimeFileTotal () {
22072206 REDIRECT;
22082207 const char * const argv[] = {" cppcheck" , " --showtime=file-total" , " file.cpp" };
22092208 ASSERT_EQUALS_ENUM (CmdLineParser::Result::Success, parseFromArgs (argv));
2210- ASSERT (settings-> showtime == ShowTime::FILE_TOTAL);
2209+ ASSERT_EQUALS_ENUM (Settings:: ShowTime::FILE_TOTAL, settings-> showtime );
22112210 }
22122211
22132212 void showtimeTop5 () {
@@ -2221,21 +2220,21 @@ class TestCmdlineParser : public TestFixture {
22212220 REDIRECT;
22222221 const char * const argv[] = {" cppcheck" , " --showtime=top5_file" , " file.cpp" };
22232222 ASSERT_EQUALS_ENUM (CmdLineParser::Result::Success, parseFromArgs (argv));
2224- ASSERT (settings-> showtime == ShowTime::TOP5_FILE);
2223+ ASSERT_EQUALS_ENUM (Settings:: ShowTime::TOP5_FILE, settings-> showtime );
22252224 }
22262225
22272226 void showtimeTop5Summary () {
22282227 REDIRECT;
22292228 const char * const argv[] = {" cppcheck" , " --showtime=top5_summary" , " file.cpp" };
22302229 ASSERT_EQUALS_ENUM (CmdLineParser::Result::Success, parseFromArgs (argv));
2231- ASSERT (settings-> showtime == ShowTime::TOP5_SUMMARY);
2230+ ASSERT_EQUALS_ENUM (Settings:: ShowTime::TOP5_SUMMARY, settings-> showtime );
22322231 }
22332232
22342233 void showtimeNone () {
22352234 REDIRECT;
22362235 const char * const argv[] = {" cppcheck" , " --showtime=none" , " file.cpp" };
22372236 ASSERT_EQUALS_ENUM (CmdLineParser::Result::Success, parseFromArgs (argv));
2238- ASSERT (settings-> showtime == ShowTime::NONE);
2237+ ASSERT_EQUALS_ENUM (Settings:: ShowTime::NONE, settings-> showtime );
22392238 }
22402239
22412240 void showtimeEmpty () {
0 commit comments