Skip to content

Commit

Permalink
add valgrind of modified tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abeaucha committed Oct 4, 2024
1 parent 4332594 commit d171e8c
Showing 1 changed file with 90 additions and 2 deletions.
92 changes: 90 additions & 2 deletions scripts/six/six-bad_xml-profiling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,96 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"==11288== Memcheck, a memory error detector\n",
"==11288== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.\n",
"==11288== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info\n",
"==11288== Command: ./target/six/modules/c++/six.sidd/unittests/test_valid_sixsidd\n",
"==11288== \n",
"==11288== error calling PR_SET_PTRACER, vgdb might block\n",
"test_createFakeDerivedData: PASSED\n",
"test_createFakeDerivedData_validate: PASSED\n",
"Warning: Unable to find plugin path.\n",
"Specify plugin location by setting environment variable NITF_PLUGIN_PATH, or by building the library from source\n",
"test_read_sidd200_no_LUT: PASSED\n",
"test_read_sidd200_xml: PASSED\n",
"test_read_sidd300_xml: PASSED\n",
"test_read_sidd300_v13_xml: PASSED\n",
"test_read_sidd100_bad_xml: PASSED\n",
"test_read_sidd200_bad_xml: PASSED\n",
"test_read_sidd300_bad_xml: PASSED\n",
"test_read_sidd300_v13_bad_xml: PASSED\n",
"==11288== \n",
"==11288== HEAP SUMMARY:\n",
"==11288== in use at exit: 96 bytes in 1 blocks\n",
"==11288== total heap usage: 4,177,144 allocs, 4,177,143 frees, 1,199,185,878 bytes allocated\n",
"==11288== \n",
"==11288== LEAK SUMMARY:\n",
"==11288== definitely lost: 0 bytes in 0 blocks\n",
"==11288== indirectly lost: 0 bytes in 0 blocks\n",
"==11288== possibly lost: 0 bytes in 0 blocks\n",
"==11288== still reachable: 0 bytes in 0 blocks\n",
"==11288== suppressed: 96 bytes in 1 blocks\n",
"==11288== \n",
"==11288== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)\n",
"--11288-- \n",
"--11288-- used_suppression: 1 nitf::HandleManager_known_leak: suppress documented memory leak in nitf/HandlerManager.hpp:122 scripts/six/nitf-HandleManager.supp:2 suppressed: 96 bytes in 1 blocks\n",
"==11288== \n",
"==11288== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)\n"
]
}
],
"source": [
"%%bash\n",
"valgrind --leak-check=full --show-leak-kinds=all -s --suppressions=scripts/six/nitf-HandleManager.supp ./target/six/modules/c++/six.sidd/unittests/test_valid_sixsidd"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"==24586== Memcheck, a memory error detector\n",
"==24586== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.\n",
"==24586== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info\n",
"==24586== Command: ./target/six/modules/c++/six.sicd/unittests/test_valid_sixsicd\n",
"==24586== \n",
"==24586== error calling PR_SET_PTRACER, vgdb might block\n",
"test_createFakeComplexData: PASSED\n",
"test_read_sicd110_xml: PASSED\n",
"test_read_sicd130_xml: PASSED\n",
"test_read_sicd040_bad_xml: PASSED\n",
"test_read_sicd041_bad_xml: PASSED\n",
"test_read_sicd050_bad_xml: PASSED\n",
"test_read_sicd100_bad_xml: PASSED\n",
"test_read_sicd101_bad_xml: PASSED\n",
"test_read_sicd110_bad_xml: PASSED\n",
"test_read_sicd120_bad_xml: PASSED\n",
"test_read_sicd121_bad_xml: PASSED\n",
"==24586== \n",
"==24586== HEAP SUMMARY:\n",
"==24586== in use at exit: 0 bytes in 0 blocks\n",
"==24586== total heap usage: 1,171,786 allocs, 1,171,786 frees, 113,915,154 bytes allocated\n",
"==24586== \n",
"==24586== All heap blocks were freed -- no leaks are possible\n",
"==24586== \n",
"==24586== For lists of detected and suppressed errors, rerun with: -s\n",
"==24586== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)\n"
]
}
],
"source": [
"%%bash\n",
"valgrind --leak-check=full --show-leak-kinds=all ./target/six/modules/c++/six.sicd/unittests/test_valid_sixsicd"
]
}
],
"metadata": {
Expand Down

0 comments on commit d171e8c

Please sign in to comment.