test/fakesockettest.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+)
New commits: commit 003c98ff9389156e72e8ab5853c84c9bbf4d8051 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Fri Aug 2 09:57:16 2019 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Fri Aug 2 09:57:20 2019 +0200 fakesockettest: respect CPPUNIT_TEST_NAME This was running unconditionally. Change-Id: I3de4241230d0f06f7836756e2d9b7fdf84d3477f diff --git a/test/fakesockettest.cpp b/test/fakesockettest.cpp index e425b4d4d..c3243570f 100644 --- a/test/fakesockettest.cpp +++ b/test/fakesockettest.cpp @@ -271,6 +271,17 @@ CPPUNIT_TEST_SUITE_REGISTRATION(FakeSocketTest); int main(int, char**) { + const char* envar = std::getenv("CPPUNIT_TEST_NAME"); + std::string testName; + if (envar) + { + testName = std::string(envar); + } + if (!testName.empty() && testName != "FakeSocketTest") + { + return 0; + } + CPPUNIT_NS::TestResult controller; CPPUNIT_NS::TestResultCollector result; controller.addListener(&result); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits