mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
sgsn/test: Add checks and reports to detect msgb leakage
This commit adds talloc reports to log remaining chunks after the testing has been finished. It also adds a (currently disabled) check, that no msgbs are allocated after running the tests. Sponsored-by: On-Waves ehf
This commit is contained in:
committed by
Holger Hans Peter Freyther
parent
a6ddc2d99f
commit
07de92e2c0
@@ -1461,6 +1461,10 @@ int main(int argc, char **argv)
|
||||
test_gmm_cancel();
|
||||
test_gmm_ptmsi_allocation();
|
||||
printf("Done\n");
|
||||
|
||||
talloc_report_full(tall_bsc_ctx, stderr);
|
||||
/* TODO: The following check currently fails */
|
||||
/* OSMO_ASSERT(talloc_total_blocks(tall_msgb_ctx) == 1); */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user