dankamongmen / notcurses

blingful character graphics/TUI library. definitely not curses.
https://nick-black.com/dankwiki/index.php/Notcurses
Other
3.43k stars 113 forks source link

ProgressBar test case failure #2731

Open eHammarstrom opened 10 months ago

eHammarstrom commented 10 months ago
declare -x COLORTERM="truecolor"
declare -x GDM_LANG="en_US.UTF-8"
declare -x LANG="en_US.UTF-8"
declare -x TERM="xterm-256color"
declare -x TERM_PROGRAM="tmux"
declare -x TERM_PROGRAM_VERSION="3.3a"

./notcurses-tester ../data/ --abort-after=1 --tc=ProgressBar

/home/estrom/zig/notcurses/src/tests/progbar.cpp:104:
TEST CASE:  ProgressBar
  FullVert

/home/estrom/zig/notcurses/src/tests/progbar.cpp:268: ERROR: CHECK( 0 == pbar_fill(nc_, ncp) ) is NOT correct!
  values: CHECK( 0 == -1 )

===============================================================================
/home/estrom/zig/notcurses/src/tests/progbar.cpp:104:
TEST CASE:  ProgressBar

DEEPEST SUBCASE STACK REACHED (DIFFERENT FROM THE CURRENT ONE):
  FullVert

Aborting - too many failed asserts!
===============================================================================
[doctest] test cases:       28 |       27 passed | 1 failed | 18 skipped
[doctest] assertions: 10646710 | 10646709 passed | 1 failed |
[doctest] Status: FAILURE!

pool_blit_direct returns -1 in progbar_redraw because of the following params,

progbar_redraw:135:pool = 0x564f17c2fa08
progbar_redraw:136:c = 0x564f17ca0f80
progbar_redraw:137:gcluster =
progbar_redraw:138:bytes = 0
progbar_redraw:139:cols = 1

I also see this print Couldn't open /usr/local/share/notcurses/changes.jpg. Supply directory with -p. which is not surprising because I have not installed notcurses yet, only done the build & test steps.