quakeforge/libs/console/test/Makemodule.am
Bill Currie d13df6cd37 [console] Add failing unit test for con_buffer
I was looking through the code for Con_BufferAddText trying to figure
out what it was doing (answer: ring buffer for both text and lines) and
got suspicious about its handling of the line objects. I decided an
automated test was in order. It turns out I was right: filling the
buffer with a single long line causes the tail line to trample the
current line, setting its pointer and length to 0 when the final
character is put in the buffer.
2022-09-17 12:59:36 +09:00

15 lines
403 B
Text

libs_console_tests = \
libs/console/test/test-buffer
TESTS += $(libs_console_tests)
check_PROGRAMS += $(libs_console_tests)
test_console_libs= \
libs/console/libQFconsole.la \
libs/util/libQFutil.la
libs_console_test_test_buffer_SOURCES= \
libs/console/test/test-buffer.c
libs_console_test_test_buffer_LDADD= $(test_console_libs)
libs_console_test_test_buffer_DEPENDENCIES=$(test_console_libs)