diff options
-rw-r--r-- | src/test/test-parse-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test-parse-util.c b/src/test/test-parse-util.c index 0175f3c19..120a8b103 100644 --- a/src/test/test-parse-util.c +++ b/src/test/test-parse-util.c @@ -526,7 +526,10 @@ static void test_safe_atod(void) { assert_se(r == -EINVAL); errno = 0; +/// elogind supports musl_libc, and their strtod doesn't seem to use the set locale. +#if defined(__GLIBC__) assert_se(fabs(strtod("0,5", &e) - 0.5) < 0.00001); +#endif // __GLIBC__ } /* And check again, reset */ |