diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-01-26 14:59:08 +0100 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-01-26 14:59:08 +0100 |
commit | 51097346565d6ed90a1a51c07f26aef2f3008f7f (patch) | |
tree | 13f380493f07924d24a0052d622ce2ff10437c7f | |
parent | f2de5ae16bc0fdbd29de69d0e0b82aaaa3f4c9e6 (diff) | |
download | embedlog-51097346565d6ed90a1a51c07f26aef2f3008f7f.tar.gz embedlog-51097346565d6ed90a1a51c07f26aef2f3008f7f.tar.bz2 embedlog-51097346565d6ed90a1a51c07f26aef2f3008f7f.zip |
add: tests when --disable-colors
-rw-r--r-- | tst/test-el-options.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tst/test-el-options.c b/tst/test-el-options.c index 4154e7d..63799ef 100644 --- a/tst/test-el-options.c +++ b/tst/test-el-options.c @@ -267,6 +267,7 @@ static void options_opt_print_level(void) static void options_opt_colors(void) { +#if ENABLE_COLORS mt_fok(el_option(EL_COLORS, 0)); mt_fail(g_options.colors == 0); mt_fok(el_option(EL_COLORS, 1)); @@ -274,6 +275,12 @@ static void options_opt_colors(void) mt_ferr(el_option(EL_COLORS, 2), EINVAL); mt_ferr(el_option(EL_COLORS, 3), EINVAL); +#else + mt_ferr(el_option(EL_COLORS, 0), ENOSYS); + mt_ferr(el_option(EL_COLORS, 1), ENOSYS); + mt_ferr(el_option(EL_COLORS, 2), ENOSYS); + mt_ferr(el_option(EL_COLORS, 3), ENOSYS); +#endif } |