Skip to content

Conversation

@Alex2772
Copy link
Contributor

@Alex2772 Alex2772 commented Mar 2, 2025

This PR demonstrates how "Code Quality" pipelines behave when introducing obvious software engineering mistakes such as memleaks.

These pipelines help to keep your codebase nice and clean.

@Alex2772
Copy link
Contributor Author

Alex2772 commented Mar 2, 2025

==4617== 
==4617== HEAP SUMMARY:
==4617==     in use at exit: 1[23](https://github.com/aui-framework/example_app/actions/runs/13615770487/job/38058603343?pr=3#step:7:24),901 bytes in 265 blocks
==4617==   total heap usage: 914 allocs, 649 frees, 204,101 bytes allocated
==4617== 
==4617== 4 bytes in 1 blocks are definitely lost in loss record 2 of [24](https://github.com/aui-framework/example_app/actions/runs/13615770487/job/38058603343?pr=3#step:7:25)4
==4617==    at 0x4846FA3: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==4617==    by 0x781173: MainWindow::sum(int, int) (MainWindow.cpp:48)
==4617==    by 0x77EE2D: SumTest_Case1_Test::TestBody() (SumTest.cpp:5)
==4617==    by 0x81F1F2: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:[26](https://github.com/aui-framework/example_app/actions/runs/13615770487/job/38058603343?pr=3#step:7:27)12)
==4617==    by 0x8172B8: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2648)
==4617==    by 0x7EF6A1: testing::Test::Run() (gtest.cc:2687)
==4617==    by 0x7F0[27](https://github.com/aui-framework/example_app/actions/runs/13615770487/job/38058603343?pr=3#step:7:28)2: testing::TestInfo::Run() (gtest.cc:2836)
==4617==    by 0x7F0CEB: testing::TestSuite::Run() (gtest.cc:3015)
==4617==    by 0x801E6F: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5920)
==4617==    by 0x820469: bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2612)
==4617==    by 0x8186EA: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2648)
==4617==    by 0x8002A2: testing::UnitTest::Run() (gtest.cc:5484)
==4617== 
{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: definite
   fun:_Znwm
   fun:_ZN10MainWindow3sumEii
   fun:_ZN18SumTest_Case1_Test8TestBodyEv
   fun:_ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc
   fun:_ZN7testing8internal[35](https://github.com/aui-framework/example_app/actions/runs/13615770487/job/38058603343?pr=3#step:7:36)HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc
   fun:_ZN7testing4Test3RunEv
   fun:_ZN7testing8TestInfo3RunEv
   fun:_ZN7testing9TestSuite3RunEv
   fun:_ZN7testing8internal12UnitTestImpl11RunAllTestsEv
   fun:_ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc
   fun:_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc
   fun:_ZN7testing8UnitTest3RunEv
}

@Alex2772 Alex2772 closed this Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants