diff --git a/test/testcmdlineparser.cpp b/test/testcmdlineparser.cpp index b48ed5101..f4932f353 100644 --- a/test/testcmdlineparser.cpp +++ b/test/testcmdlineparser.cpp @@ -103,7 +103,6 @@ private: TEST_CASE(maxConfigsInvalid); TEST_CASE(maxConfigsTooSmall); TEST_CASE(reportProgressTest); // "Test" suffix to avoid hiding the parent's reportProgress - TEST_CASE(stdposix); TEST_CASE(stdc99); TEST_CASE(stdcpp11); TEST_CASE(platform); @@ -694,14 +693,6 @@ private: ASSERT(settings.reportProgress); } - void stdposix() { - REDIRECT; - const char * const argv[] = {"cppcheck", "--std=posix", "file.cpp"}; - settings.standards.posix = false; - ASSERT(defParser.parseFromArgs(3, argv)); - ASSERT(settings.standards.posix); - } - void stdc99() { REDIRECT; const char * const argv[] = {"cppcheck", "--std=c99", "file.cpp"}; diff --git a/test/testfunctions.cpp b/test/testfunctions.cpp index 7f3b630e0..1a669736a 100644 --- a/test/testfunctions.cpp +++ b/test/testfunctions.cpp @@ -38,7 +38,7 @@ private: settings.addEnabled("style"); settings.addEnabled("warning"); settings.addEnabled("portability"); - settings.standards.posix = true; + settings.libraries.push_back("posix"); settings.standards.c = Standards::C11; settings.standards.cpp = Standards::CPP11; LOAD_LIB_2(settings.library, "std.cfg"); diff --git a/test/testmemleak.cpp b/test/testmemleak.cpp index 88e82ac74..e5160f678 100644 --- a/test/testmemleak.cpp +++ b/test/testmemleak.cpp @@ -1789,7 +1789,7 @@ private: void run() OVERRIDE { settings.inconclusive = true; - settings.standards.posix = true; + settings.libraries.push_back("posix"); settings.addEnabled("warning"); LOAD_LIB_2(settings.library, "std.cfg"); diff --git a/test/testother.cpp b/test/testother.cpp index 560da47cc..8e1e1f41d 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -300,7 +300,7 @@ private: void checkposix(const char code[]) { static Settings settings; settings.addEnabled("warning"); - settings.standards.posix = true; + settings.libraries.push_back("posix"); check(code, nullptr, // filename