From cf6950962832f3d7acf30eaed81c5b660c9c6135 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 19 Jun 2023 12:46:12 +0300 Subject: CppunitTest_cppcanvas_test: use CPPUNIT_TEST_FIXTURE() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I736e67530643a0949e3078a873ba3105f359ed1d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153261 Tested-by: Jenkins Reviewed-by: خالد حسني --- cppcanvas/qa/unit/test.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'cppcanvas') diff --git a/cppcanvas/qa/unit/test.cxx b/cppcanvas/qa/unit/test.cxx index e399e96eb0a8..ff3fc215f224 100644 --- a/cppcanvas/qa/unit/test.cxx +++ b/cppcanvas/qa/unit/test.cxx @@ -24,15 +24,9 @@ class CanvasTest : public test::BootstrapFixture { public: CanvasTest() : BootstrapFixture(true, false) {} - - void testComposite(); - - CPPUNIT_TEST_SUITE(CanvasTest); - CPPUNIT_TEST(testComposite); - CPPUNIT_TEST_SUITE_END(); }; -void CanvasTest::testComposite() +CPPUNIT_TEST_FIXTURE(CanvasTest, testComposite) { #ifdef LINUX ScopedVclPtrInstance pWin( nullptr, WB_STDWORK ); @@ -78,8 +72,6 @@ void CanvasTest::testComposite() #endif } -CPPUNIT_TEST_SUITE_REGISTRATION(CanvasTest); - CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit