test: resolve "Unchecked return value" coverity warning

Follow-up for c8210d98a4.
Fixes CID#1548920.
This commit is contained in:
Yu Watanabe
2024-08-01 22:42:08 +09:00
parent a30ac8d52c
commit 6141fe925a
+1 -1
View File
@@ -279,7 +279,7 @@ TEST(get_color_mode) {
test_get_color_mode_with_env("COLORTERM", "24bit", terminal_is_dumb() ? COLOR_OFF : COLOR_24BIT);
test_get_color_mode_with_env("COLORTERM", "invalid", terminal_is_dumb() ? COLOR_OFF : COLOR_256);
test_get_color_mode_with_env("COLORTERM", "42", terminal_is_dumb() ? COLOR_OFF : COLOR_256);
unsetenv("COLORTERM");
ASSERT_OK_ERRNO(unsetenv("COLORTERM"));
reset_terminal_feature_caches();
}