From: Pádraig Brady
Date: Tue, 18 Jun 2013 14:47:35 +0000 (+0100)
Subject: tests: use appropriate precision when printing float limits
X-Git-Tag: v8.22~126
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bb800dd414038f233576acf53c0f2fd0d3609cd;p=thirdparty%2Fcoreutils.git
tests: use appropriate precision when printing float limits
* src/getlimits.c (print_float): Adjust to use the ftoastr module,
which uses the appropriate precision so that no info is lost.
* cfg.mk (sc_prohibit_continued_string_alpha_in_column_1): Exclude od.c
fixes http://bugs.gnu.org/14650
---
diff --git a/cfg.mk b/cfg.mk
index 04c8a8a05e..7b14c07f13 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -603,7 +603,7 @@ exclude_file_name_regexp--sc_prohibit_stat_st_blocks = \
^(src/system\.h|tests/du/2g\.sh)$$
exclude_file_name_regexp--sc_prohibit_continued_string_alpha_in_column_1 = \
- ^src/(system\.h|od\.c|printf\.c)$$
+ ^src/(system\.h|od\.c|printf\.c|getlimits\.c)$$
exclude_file_name_regexp--sc_prohibit_test_backticks = \
^tests/(local\.mk|(init|misc/stdbuf|factor/create-test)\.sh)$$
diff --git a/src/getlimits.c b/src/getlimits.c
index 7c1fbe26e0..99140255f7 100644
--- a/src/getlimits.c
+++ b/src/getlimits.c
@@ -21,6 +21,7 @@
#include