# gcc --version gcc (GCC) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. make -C src all make[1]: Entering directory '/tmp/qlibc/src' /usr/bin/ar -rc ../lib/libqlibc.a containers/qtreetbl.o containers/qhashtbl.o containers/qhasharr.o containers/qlisttbl.o containers/qlist.o containers/qvector.o containers/qqueue.o containers/qstack.o containers/qgrow.o utilities/qcount.o utilities/qencode.o utilities/qfile.o utilities/qhash.o utilities/qio.o utilities/qsocket.o utilities/qstring.o utilities/qsystem.o utilities/qtime.o ipc/qsem.o ipc/qshm.o internal/qinternal.o internal/md5/md5c.o ranlib ../lib/libqlibc.a gcc -shared -o ../lib/libqlibc.so.2 containers/qtreetbl.o containers/qhashtbl.o containers/qhasharr.o containers/qlisttbl.o containers/qlist.o containers/qvector.o containers/qqueue.o containers/qstack.o containers/qgrow.o utilities/qcount.o utilities/qencode.o utilities/qfile.o utilities/qhash.o utilities/qio.o utilities/qsocket.o utilities/qstring.o utilities/qsystem.o utilities/qtime.o ipc/qsem.o ipc/qshm.o internal/qinternal.o internal/md5/md5c.o ( cd ../lib; ln -s -f libqlibc.so.2 libqlibc.so ) /usr/bin/ar -rc ../lib/libqlibcext.a extensions/qconfig.o extensions/qaconf.o extensions/qlog.o extensions/qhttpclient.o extensions/qdatabase.o extensions/qtokenbucket.o ranlib ../lib/libqlibcext.a gcc -shared -o ../lib/libqlibcext.so.2 extensions/qconfig.o extensions/qaconf.o extensions/qlog.o extensions/qhttpclient.o extensions/qdatabase.o extensions/qtokenbucket.o ../lib/libqlibc.so.2 ( cd ../lib; ln -s -f libqlibcext.so.2 libqlibcext.so ) make[1]: Leaving directory '/tmp/qlibc/src' make -C tests test make[1]: Entering directory '/tmp/qlibc/tests' Test qstring.c ====================================================================== * TEST : qstrtrim() ............... OK (15 assertions, 0ms) * TEST : qstrtrim_head() ....... OK (7 assertions, 0ms) * TEST : qstrtrim_tail() ....... OK (7 assertions, 0ms) ====================================================================== PASS - 3/3 tests passed. Test qhashtbl.c ====================================================================== * TEST : Test basic but complete ......... OK (9 assertions, 0ms) * TEST : Test thousands of keys insertion and removal: short key + short value .............................. OK (40002 assertions, 9ms) * TEST : Test thousands of keys insertion and removal: short key + long value .............................. OK (40002 assertions, 11ms) * TEST : Test thousands of keys insertion and removal: long key + short value .............................. OK (40002 assertions, 14ms) * TEST : Test thousands of keys insertion and removal: long key + long value .............................. OK (40002 assertions, 11ms) ====================================================================== PASS - 5/5 tests passed. Test qhasharr.c ====================================================================== * TEST : Test basic but complete ......... OK (9 assertions, 0ms) * TEST : Test thousands of keys insertion and removal: short key + short value .............................. OK (40004 assertions, 10ms) * TEST : Test thousands of keys insertion and removal: short key + long value .............................. OK (13337 assertions, 4ms) * TEST : Test thousands of keys insertion and removal: long key + short value .............................. OK (40004 assertions, 27ms) * TEST : Test thousands of keys insertion and removal: long key + long value .............................. OK (13337 assertions, 10ms) * TEST : Test remove_by_idx() ........ OK (8 assertions, 0ms) ====================================================================== PASS - 6/6 tests passed. Test qhasharr.c by darkdh ====================================================================== * TEST : qhasharr() ... OK (3 assertions, 0ms) * TEST : put() to full ................... OK (19 assertions, 0ms) * TEST : get() non-exist key . OK (1 assertions, 0ms) * TEST : remove() to empty ........ OK (8 assertions, 0ms) * TEST : add() same key ..... OK (5 assertions, 0ms) * TEST : getnext() ............................ OK (28 assertions, 0ms) ====================================================================== PASS - 6/6 tests passed. Test qtreetbl.c ====================================================================== * TEST : Test growth of tree E C `````````````````````````````````` R B ```````````````` D N ```````````````` X [A]```````` ```````` [I]```````` [S]```````` ```` ```` ```` Tree Info : #nodes=10, #red=3, #black=-7, root=E Segmentation fault Test qlist.c ====================================================================== * TEST : Test basic features ................ OK (16 assertions, 0ms) * TEST : Test boundary conditions .............................. OK (31 assertions, 0ms) * TEST : Test thousands of values: without prefix and postfix .............................. OK (30004 assertions, 17ms) * TEST : Test thousands of values: with prefix and without postfix .............................. OK (30004 assertions, 163ms) * TEST : Test thousands of values: without prefix and with postfix .............................. OK (30004 assertions, 156ms) * TEST : Test thousands of values: with prefix and postfix .............................. OK (30004 assertions, 318ms) ====================================================================== PASS - 6/6 tests passed. Test qvector.c ====================================================================== * TEST : Test basic features ................. OK (17 assertions, 0ms) * TEST : Test boundary conditions .............................. OK (38 assertions, 0ms) * TEST : Test thousands of values: without prefix and postfix .............................. OK (110001 assertions, 7ms) * TEST : Test thousands of values: with prefix and without postfix .............................. OK (110001 assertions, 9ms) * TEST : Test thousands of values: without prefix and with postfix .............................. OK (110001 assertions, 9ms) * TEST : Test thousands of values: with prefix and postfix .............................. OK (110001 assertions, 10ms) * TEST : Test resize ........... OK (11 assertions, 0ms) ====================================================================== PASS - 7/7 tests passed. Test qqueue.c ====================================================================== * TEST : Test basic features .......... OK (10 assertions, 0ms) * TEST : Test boundary conditions .............................. OK (31 assertions, 0ms) * TEST : Test thousands of values: without prefix and postfix .............................. OK (60001 assertions, 5ms) * TEST : Test thousands of values: with prefix and without postfix .............................. OK (60001 assertions, 6ms) * TEST : Test thousands of values: without prefix and with postfix .............................. OK (60001 assertions, 7ms) * TEST : Test thousands of values: with prefix and postfix .............................. OK (60001 assertions, 7ms) ====================================================================== PASS - 6/6 tests passed. Test qstack.c ====================================================================== * TEST : Test basic features .......... OK (10 assertions, 0ms) * TEST : Test boundary conditions .............................. OK (31 assertions, 0ms) * TEST : Test thousands of values: without prefix and postfix .............................. OK (60001 assertions, 5ms) * TEST : Test thousands of values: with prefix and without postfix .............................. OK (60001 assertions, 6ms) * TEST : Test thousands of values: without prefix and with postfix .............................. OK (60001 assertions, 6ms) * TEST : Test thousands of values: with prefix and postfix .............................. OK (60001 assertions, 7ms) ====================================================================== PASS - 6/6 tests passed. Test qhash.c ====================================================================== * TEST : qhashmd5_file(test_qhash_data_1.bin, 0, 0) ... OK (3 assertions, 0ms) * TEST : qhashmd5_file(test_qhash_data_1.bin, 0, 1) ... OK (3 assertions, 0ms) * TEST : qhashmd5_file(test_qhash_data_1.bin, 0, 2) ... OK (3 assertions, 0ms) * TEST : qhashmd5_file(test_qhash_data_1.bin, 0, 3) ... OK (3 assertions, 0ms) * TEST : qhashmd5_file(test_qhash_data_1.bin, 1, 2) ... OK (3 assertions, 0ms) * TEST : qhashmd5_file(test_qhash_data_1.bin, 2, 3) ... OK (3 assertions, 0ms) * TEST : qhashmd5_file(test_qhash_data_2.bin, 0, 0) ... OK (3 assertions, 0ms) * TEST : qhashmd5_file(test_qhash_data_3.bin, 0, 0) ... OK (3 assertions, 0ms) * TEST : qhashmd5_file(test_qhash_data_4.bin, 0, 0) ... OK (3 assertions, 0ms) ====================================================================== PASS - 9/9 tests passed. ====================================================================== **** OOOOOPS!!! UNSUCESSFUL UNIT TEST FOUND. PLEASE FIX AND RERUN **** ====================================================================== Fails in => test_qtreetbl make[1]: Leaving directory '/tmp/qlibc/tests'