Metric unit test: call notcurses_stop() at end only

dankamongmen/ltr
nick black 4 years ago
parent ca2f5cf748
commit 8584fb2b05
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -425,11 +425,6 @@ TEST_CASE("Metric") {
if(!nc_){
return;
}
if(!notcurses_canutf8(nc_)){
CHECK(0 == notcurses_stop(nc_));
return;
}
CHECK(0 == notcurses_stop(nc_));
const wchar_t* smallsuffixes;
if(notcurses_canutf8(nc_)){
smallsuffixes = L"yzafpnµm";
@ -456,6 +451,7 @@ TEST_CASE("Metric") {
}while(++i < (wcslen(smallsuffixes) - 3) * 3);
// If we ran through all our suffixes, that's a problem
CHECK(wcslen(smallsuffixes) * 3 > i);
CHECK(0 == notcurses_stop(nc_));
}
// inspired by #929

Loading…
Cancel
Save