g_mem_set_vtable () g_mem_profile () autounit



Hello,

looks like using g_mem_set_vtable(glib_mem_profiler_table) with
g_mem_profile() in autounit test-suites does not work.

placing the call to g_mem_set_vtable(glib_mem_profiler_table)
in the test-programs main function as the first statement gives:

make[1]: Entering directory `/usr/src/redhat/BUILD/libcomm/tests'
?! ',H' test disabled
Function Tests
/bin/sh: line 1: 14469 Speicherzugriffsfehler  ${dir}$tst
FAIL: libcomm_test
===================
1 of 1 tests failed
===================

while without gives:

make[1]: Leaving directory `/usr/src/redhat/BUILD/libcomm/tests'
make  check-TESTS
make[1]: Entering directory `/usr/src/redhat/BUILD/libcomm/tests'
Function Tests
.
OK 1 succeeded 0.086436 s (86436 us) total elapsed time
PASS: libcomm_test
==================
All 1 tests passed
==================

Changing glib's way handling memory-(de)allocations by installig the
profiling memory handlers does interfere with autounits way handling
memory-(de)allocations?


Thanks for any suggestions!






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]