From 66349ecbd072e968cdaeb8151a70f6c9fdb60864 Mon Sep 17 00:00:00 2001 From: nick black Date: Mon, 28 Dec 2020 02:01:54 -0500 Subject: [PATCH] progress bar unit tests: skip non-utf8 --- tests/progbar.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/progbar.cpp b/tests/progbar.cpp index 615504290..ae3f81eda 100644 --- a/tests/progbar.cpp +++ b/tests/progbar.cpp @@ -7,6 +7,10 @@ TEST_CASE("ProgressBar") { if(!nc_){ return; } + if(!notcurses_canutf8(nc_)){ + CHECK(0 == notcurses_stop(nc_)); + return; + } struct ncplane* n_ = notcurses_stdplane(nc_); REQUIRE(n_); REQUIRE(0 == ncplane_cursor_move_yx(n_, 0, 0));