|
19 | 19 | #include "cmdlinelogger.h" |
20 | 20 | #include "cmdlineparser.h" |
21 | 21 | #include "config.h" |
22 | | -#include "cppcheckexecutor.h" |
23 | 22 | #include "errorlogger.h" |
24 | 23 | #include "errortypes.h" |
25 | 24 | #include "helpers.h" |
@@ -1911,28 +1910,25 @@ class TestCmdlineParser : public TestFixture { |
1911 | 1910 | void exceptionhandling() { |
1912 | 1911 | REDIRECT; |
1913 | 1912 | const char * const argv[] = {"cppcheck", "--exception-handling", "file.cpp"}; |
1914 | | - CppCheckExecutor::setExceptionOutput(stderr); |
1915 | 1913 | ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parser->parseFromArgs(3, argv)); |
1916 | 1914 | ASSERT(settings->exceptionHandling); |
1917 | | - ASSERT_EQUALS(stderr, CppCheckExecutor::getExceptionOutput()); |
| 1915 | + ASSERT_EQUALS(stdout, settings->exceptionOutput); |
1918 | 1916 | } |
1919 | 1917 |
|
1920 | 1918 | void exceptionhandling2() { |
1921 | 1919 | REDIRECT; |
1922 | 1920 | const char * const argv[] = {"cppcheck", "--exception-handling=stderr", "file.cpp"}; |
1923 | | - CppCheckExecutor::setExceptionOutput(stdout); |
1924 | 1921 | ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parser->parseFromArgs(3, argv)); |
1925 | 1922 | ASSERT(settings->exceptionHandling); |
1926 | | - ASSERT_EQUALS(stderr, CppCheckExecutor::getExceptionOutput()); |
| 1923 | + ASSERT_EQUALS(stderr, settings->exceptionOutput); |
1927 | 1924 | } |
1928 | 1925 |
|
1929 | 1926 | void exceptionhandling3() { |
1930 | 1927 | REDIRECT; |
1931 | 1928 | const char * const argv[] = {"cppcheck", "--exception-handling=stdout", "file.cpp"}; |
1932 | | - CppCheckExecutor::setExceptionOutput(stderr); |
1933 | 1929 | ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parser->parseFromArgs(3, argv)); |
1934 | 1930 | ASSERT(settings->exceptionHandling); |
1935 | | - ASSERT_EQUALS(stdout, CppCheckExecutor::getExceptionOutput()); |
| 1931 | + ASSERT_EQUALS(stdout, settings->exceptionOutput); |
1936 | 1932 | } |
1937 | 1933 |
|
1938 | 1934 | void exceptionhandlingInvalid() { |
|
0 commit comments