forked from cellular-infrastructure/osmo-pcu
tbf/test: Optionally show talloc report
To show the talloc report more easily, this commit adds a call to talloc_report_full if the TALLOC_REPORT_FULL environment variable is set (the value is ignored). Since the stderr output is checked by the test suite, this feature is not enabled by default. Sponsored-by: On-Waves ehf
This commit is contained in:
parent
fecece0e59
commit
67c385046d
|
@ -378,6 +378,9 @@ int main(int argc, char **argv)
|
|||
test_tbf_final_ack(TEST_MODE_REVERSE_FREE);
|
||||
test_tbf_delayed_release();
|
||||
test_tbf_exhaustion();
|
||||
|
||||
if (getenv("TALLOC_REPORT_FULL"))
|
||||
talloc_report_full(tall_pcu_ctx, stderr);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue