File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class TestPlatform : public TestFixture {
3434 TEST_CASE (valid_config_win32w);
3535 TEST_CASE (valid_config_unix32);
3636 TEST_CASE (valid_config_win64);
37+ TEST_CASE (valid_config_native);
3738 TEST_CASE (valid_config_file_1);
3839 TEST_CASE (valid_config_file_2);
3940 TEST_CASE (valid_config_file_3);
@@ -181,6 +182,16 @@ class TestPlatform : public TestFixture {
181182 ASSERT_EQUALS (64 , platform.long_long_bit );
182183 }
183184
185+ void valid_config_native () const {
186+ cppcheck::Platform platform;
187+ PLATFORM (platform, cppcheck::Platform::Type::Native);
188+ #ifdef _WIN32
189+ ASSERT (platform.isWindows ());
190+ #else
191+ ASSERT (!platform.isWindows ());
192+ #endif
193+ }
194+
184195 void valid_config_file_1 () const {
185196 // Valid platform configuration with all possible values specified.
186197 // Similar to the avr8 platform file.
You can’t perform that action at this time.
0 commit comments