You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
notcurses/src/tests
Dan Bungert 8f972a3e0e metric: fix test on armhf/glibc 2.37
In the metric test is a call to ncnmetric, which eventually calls
snprintf.  Along the way is a size that is much larger than the actual
bufsize, but it shouldn't matter as the buffer size exceeds what we
print (or at least what is expected).

In testing with glibc 2.37 on armhf on Ubuntu Lunar, I found that these
metric tests can fail with some unexpected truncation of the values.

For example, in the following check,
```
    impericize_ncmetric(0, 1, buf, 0, 1000, '\0');
    CHECK(!strcmp("0.00", buf));
```
buf would actually be "0.0".

Using a more realistic buffer size produces a working result.
1 year ago
..
Exceptions.cpp exception tests: explicitly stop context 3 years ago
Ncpp.cpp unsigned geometries 3 years ago
autogrow.cpp basic autogrow tests #2440 2 years ago
bitmap.cpp workarounds for busted doctest 2.4.9 #2673 2 years ago
blit.cpp normalize geometry for ncvisual_from_plane, ncplane_contents, and ncplane_as_rgba() #1696 3 years ago
cell.cpp [tabs] update plane+cell unit tests #1233 2 years ago
channels.cpp [channels_blend] update unit tests for general blender #2433 2 years ago
direct.cpp [termdesc] don't enable sixel graphics with 0 color registers 2 years ago
egcpool.cpp [logging] use CRLF on windows #2489 2 years ago
erase.cpp normalize cell initializer names (prefix with NC) 3 years ago
fade.cpp [ncplane_put] subtle cursor verification fix 2 years ago
fbuf.cpp unsigned geometries 3 years ago
fds.cpp [nctabbed_create] clean up error paths, refuse bound plane #2347 3 years ago
fills.cpp normalize cell initializer names (prefix with NC) 3 years ago
geom.cpp normalize cell initializer names (prefix with NC) 3 years ago
internal.cpp improve 256-color grey quantization 3 years ago
libunistring.cpp tighten up include paths, libgpm connect #1986 3 years ago
main.cpp [tester] define loglevel so we can log in internal headers 2 years ago
main.h [ubuntu] try to get doctest compiling 3 years ago
media.cpp use ffmpeg-free-compatible video in all tests #2631 2 years ago
menu.cpp track widgets from planes #2342, hook up ncmenu 3 years ago
metric.cpp metric: fix test on armhf/glibc 2.37 1 year ago
multiselector.cpp [tester] kill memory leaks in two unit tests 3 years ago
notcurses.cpp unsigned geometries 3 years ago
output.cpp [output] partial print on right-aligned overflow text #2472 2 years ago
palette.cpp [palette] rename unit tests, add some CHECKs 3 years ago
piles.cpp normalize cell initializer names (prefix with NC) 3 years ago
plane.cpp [tabs] update plane+cell unit tests #1233 2 years ago
plot.cpp [plot] work with widget tracking 3 years ago
progbar.cpp remove progbar PoC, move it into unit tests 3 years ago
reader.cpp reader unit test: plug memory leak 3 years ago
reel.cpp [ncneofetch] remove screen dimensions, provide arch fallback #2341 #2336 3 years ago
reelgaps.cpp CHANNELS_RGB_ -> NCCHANNELS_ 3 years ago
resize.cpp unsigned geometries 3 years ago
rotate.cpp normalize cell initializer names (prefix with NC) 3 years ago
scrolling.cpp normalize cell initializer names (prefix with NC) 3 years ago
selector.cpp restore ncselector_destroy API, set widget in ncreader #2347 3 years ago
sixels.cpp [sixel] fix unit tests on big-endian machines 2 years ago
stacking.cpp [Stacking] fix unit test 3 years ago
tabbed.cpp workarounds for busted doctest 2.4.9 #2673 2 years ago
tabs.cpp [tabs] autogrow to the right to next tabstop #1233 2 years ago
textlayout.cpp (Failing) test case for UNALIGNED puttext. 2 years ago
tree.cpp [nctree] refuse the standard plane 2 years ago
version.cpp exception tests: explicitly stop context 3 years ago
visual.cpp [sprixels] use cell-pixel geometry from ncpile #1687 3 years ago
wide.cpp docs: Fix a few typos 2 years ago
zaxis.cpp [tests] add FamilyAbove for infinite loop found by drewt #2687 1 year ago