aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-04-18 14:30:56 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-04-18 14:30:56 +0200
commitc4469eca61e16585c1b64ba049143324ef89fb09 (patch)
tree286a45fce3911ee7a9f4c7dec18549bd58ab4041
parent99b4b260289fcec5cb25725f9a98026f047e53ea (diff)
downloadembedlog-c4469eca61e16585c1b64ba049143324ef89fb09.tar.gz
embedlog-c4469eca61e16585c1b64ba049143324ef89fb09.tar.bz2
embedlog-c4469eca61e16585c1b64ba049143324ef89fb09.zip
fix failing test when --disable-timestamp was set
-rw-r--r--tst/test-el-options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tst/test-el-options.c b/tst/test-el-options.c
index 44e7668..c8938a3 100644
--- a/tst/test-el-options.c
+++ b/tst/test-el-options.c
@@ -410,7 +410,7 @@ static void options_opt_timestamp_fraction(void)
for (i = EL_TS_FRACT_OFF; i != EL_TS_FRACT_ERROR; ++i)
{
-#if ENABLE_FRACTIONS
+#if ENABLE_FRACTIONS && ENABLE_TIMESTAMP
mt_fok(el_option(EL_TS_FRACT, i));
mt_fail(g_options.timestamp_fractions == i);
#else
@@ -418,7 +418,7 @@ static void options_opt_timestamp_fraction(void)
#endif
}
-#if ENABLE_FRACTIONS
+#if ENABLE_FRACTIONS && ENABLE_TIMESTAMP
mt_ferr(el_option(EL_TS_FRACT, i), EINVAL);
#else
mt_ferr(el_option(EL_TS_FRACT, i), ENOSYS);