chiark / gitweb /
test: fix strtod test for real
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 15 Aug 2014 11:20:18 +0000 (13:20 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 15 Aug 2014 11:25:15 +0000 (13:25 +0200)
commit926446f4aab62d5fa02840d39d661de61632292c
treef0d46e4dfd8fe9e56f3debc69bb72ebfa7ee53a2
parentdb73295accbec0c6513817f0a64a92018592bb26
test: fix strtod test for real

The "0,5" syntax was actually right. The real problem is, the test should
only run if the local system has the de_DE.UTF-8 locale. Therefore, skip
the tests if setlocale() fails. This is kinda ugly, as it is done
silently, but we cannot skip partial tests with the current
infrastructure. Should be fine this way.
src/test/test-util.c