diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-04-05 19:50:54 +0200 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-04-05 19:50:54 +0200 |
commit | a6a57b244e9abfc334a3a15dcff61fc10d5376af (patch) | |
tree | 0d9b16d0a2322d06af63d4b697432a87eb1120a4 | |
parent | cfeb28546da0a7e3fe48524815f32411daca985c (diff) | |
download | embedlog-a6a57b244e9abfc334a3a15dcff61fc10d5376af.tar.gz embedlog-a6a57b244e9abfc334a3a15dcff61fc10d5376af.tar.bz2 embedlog-a6a57b244e9abfc334a3a15dcff61fc10d5376af.zip |
fix: tests after adding extended colors
-rw-r--r-- | tst/test-el-print.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tst/test-el-print.c b/tst/test-el-print.c index c3dec0c..e17c786 100644 --- a/tst/test-el-print.c +++ b/tst/test-el-print.c @@ -122,6 +122,7 @@ static int print_check(void) int i; int slevel; size_t msglen; +#if ENABLE_COLORS_EXTENDED static const char *color[] = { "\e[91m", /* fatal light red */ @@ -134,6 +135,20 @@ static int print_check(void) "\e[34m", /* debug blue */ "\e[0m" /* remove all formats */ }; +#else + static const char *color[] = + { + "\e[31m", /* fatal light red */ + "\e[31m", /* alert red */ + "\e[35m", /* critical light magenta */ + "\e[35m", /* error magenta */ + "\e[33m", /* warning light yellow */ + "\e[32m", /* notice light green */ + "\e[32m", /* information green */ + "\e[34m", /* debug blue */ + "\e[0m" /* remove all formats */ + }; +#endif /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ msg = logbuf; |