| 1872 | } |
| 1873 | |
| 1874 | void platformNative() { |
| 1875 | REDIRECT; |
| 1876 | const char * const argv[] = {"cppcheck", "--platform=native", "file.cpp"}; |
| 1877 | ASSERT(settings->platform.set(Platform::Type::Unspecified)); |
| 1878 | ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); |
| 1879 | ASSERT_EQUALS(Platform::Type::Native, settings->platform.type); |
| 1880 | } |
| 1881 | |
| 1882 | void platformUnspecified() { |
| 1883 | REDIRECT; |