diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 14:55:10 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 14:55:10 +0300 |
commit | 00ef0423acd97cb964a2bae54c93a03a8ab50e5e (patch) | |
tree | 2864426773f537f912db1bd716c27b713c5f7dcf /test/lc_num1.awk | |
parent | 3ba50a15ebd976f7a88393e2e45dc14b6478b9a9 (diff) | |
download | egawk-00ef0423acd97cb964a2bae54c93a03a8ab50e5e.tar.gz egawk-00ef0423acd97cb964a2bae54c93a03a8ab50e5e.tar.bz2 egawk-00ef0423acd97cb964a2bae54c93a03a8ab50e5e.zip |
Move to 3.1.8.
Diffstat (limited to 'test/lc_num1.awk')
-rw-r--r-- | test/lc_num1.awk | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/test/lc_num1.awk b/test/lc_num1.awk index c982a146..c9b98ecf 100644 --- a/test/lc_num1.awk +++ b/test/lc_num1.awk @@ -1,4 +1,19 @@ # Bug reported by Ulrich Drepper. +# BEGIN { +# printf("%'d %d\n", 1000000, 1000000) +# } + +# April 2010: +# This needs to be a smarter test so that systems without the %'d flag +# don't generate a needless failure. + BEGIN { - printf("%'d %d\n", 1000000, 1000000) + s = sprintf("%'d", 1234) + if (s == "1,234" || s == "1234") + print "ok, or at least the quote flag isn't supported" + else { + command = "od -c" + print("fail:", s) | command + close(command) + } } |