Pádraig Brady wrote: > I see the new sort-discrim test fails on systems > without GMP (in this case solaris). > The attached should fix it.
Both with the original 8.15.74-be17e3 and the patch, the test fails here on SLES10.3 (x86_64). Have a nice day, Berny ecs@mchp320a:~/berny/depot/coreutils-8.15.74-be17e3/tests> cat misc/sort-discrim.log ++ initial_cwd_=/user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests ++ fail=0 +++ testdir_prefix_ +++ printf gt ++ pfx_=gt +++ mktempd_ /user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests gt-sort-discrim.XXXX +++ case $# in +++ destdir_=/user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests +++ template_=gt-sort-discrim.XXXX +++ MAX_TRIES_=4 +++ case $destdir_ in +++ case $template_ in ++++ unset TMPDIR ++++ mktemp -d -t -p /user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests gt-sort-discrim.XXXX +++ d=/user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests/gt-sort-discrim.v7CX +++ case $d in +++ test -d /user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests/gt-sort-discrim.v7CX ++++ ls -dgo /user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests/gt-sort-discrim.v7CX ++++ tr S - +++ perms='drwx------ 2 4096 Mar 16 13:05 /user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests/gt-sort-discrim.v7CX' +++ case $perms in +++ test 0 = 0 +++ echo /user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests/gt-sort-discrim.v7CX +++ return ++ test_dir_=/user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests/gt-sort-discrim.v7CX ++ cd /user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests/gt-sort-discrim.v7CX ++ gl_init_sh_nl_=' ' ++ IFS=' ' ++ for sig_ in 1 2 3 13 15 +++ expr 1 + 128 ++ eval 'trap '\''Exit 129'\'' 1' +++ trap 'Exit 129' 1 ++ for sig_ in 1 2 3 13 15 +++ expr 2 + 128 ++ eval 'trap '\''Exit 130'\'' 2' +++ trap 'Exit 130' 2 ++ for sig_ in 1 2 3 13 15 +++ expr 3 + 128 ++ eval 'trap '\''Exit 131'\'' 3' +++ trap 'Exit 131' 3 ++ for sig_ in 1 2 3 13 15 +++ expr 13 + 128 ++ eval 'trap '\''Exit 141'\'' 13' +++ trap 'Exit 141' 13 ++ for sig_ in 1 2 3 13 15 +++ expr 15 + 128 ++ eval 'trap '\''Exit 143'\'' 15' +++ trap 'Exit 143' 15 ++ trap remove_tmp_ 0 + path_prepend_ ../src + test 1 '!=' 0 + path_dir_=../src + case $path_dir_ in ++ cd /user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests/../src ++ echo /user/ecs/berny/depot/coreutils-8.15.74-be17e3/src + abs_path_dir_=/user/ecs/berny/depot/coreutils-8.15.74-be17e3/src + case $abs_path_dir_ in + PATH=/user/ecs/berny/depot/coreutils-8.15.74-be17e3/src:/user/ecs/berny/depot/coreutils-8.15.74-be17e3/src:/user/ecs/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/opt/nsr:. + create_exe_shims_ /user/ecs/berny/depot/coreutils-8.15.74-be17e3/src + case $EXEEXT in + return 0 + shift + test 0 '!=' 0 + export PATH + print_ver_ sort + test yes = yes + local i + for i in '$*' + env sort --version sort (GNU coreutils) 8.15.74-be17e3 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Mike Haertel and Paul Eggert. + getlimits_ ++ getlimits + eval CHAR_MAX=127 CHAR_OFLOW=128 CHAR_MIN=-128 CHAR_UFLOW=-129 SCHAR_MAX=127 SCHAR_OFLOW=128 SCHAR_MIN=-128 SCHAR_UFLOW=-129 UCHAR_MAX=255 UCHAR_OFLOW=256 SHRT_MAX=32767 SHRT_OFLOW=32768 SHRT_MIN=-32768 SHRT_UFLOW=-32769 INT_MAX=2147483647 INT_OFLOW=2147483648 INT_MIN=-2147483648 INT_UFLOW=-2147483649 UINT_MAX=4294967295 UINT_OFLOW=4294967296 LONG_MAX=9223372036854775807 LONG_OFLOW=9223372036854775808 LONG_MIN=-9223372036854775808 LONG_UFLOW=-9223372036854775809 ULONG_MAX=18446744073709551615 ULONG_OFLOW=18446744073709551616 SIZE_MAX=18446744073709551615 SIZE_OFLOW=18446744073709551616 SSIZE_MAX=9223372036854775807 SSIZE_OFLOW=9223372036854775808 SSIZE_MIN=-9223372036854775808 SSIZE_UFLOW=-9223372036854775809 TIME_T_MAX=9223372036854775807 TIME_T_OFLOW=9223372036854775808 TIME_T_MIN=-9223372036854775808 TIME_T_UFLOW=-9223372036854775809 UID_T_MAX=4294967295 UID_T_OFLOW=4294967296 GID_T_MAX=4294967295 GID_T_OFLOW=4294967296 PID_T_MAX=2147483647 PID_T_OFLOW=2147483648 PID_T_MIN=-2147483648 PID_T_UFLOW=-2147483649 OFF_T_MAX=9223372036854775807 OFF_T_OFLOW=9223372036854775808 OFF_T_MIN=-9223372036854775808 OFF_T_UFLOW=-9223372036854775809 INTMAX_MAX=9223372036854775807 INTMAX_OFLOW=9223372036854775808 INTMAX_MIN=-9223372036854775808 INTMAX_UFLOW=-9223372036854775809 UINTMAX_MAX=18446744073709551615 UINTMAX_OFLOW=18446744073709551616 FLT_MIN=1.175494e-38 FLT_MAX=3.402823e+38 DBL_MIN=2.225074e-308 DBL_MAX=1.797693e+308 LDBL_MIN=3.362103e-4932 LDBL_MAX=1.189731e+4932 ++ CHAR_MAX=127 ++ CHAR_OFLOW=128 ++ CHAR_MIN=-128 ++ CHAR_UFLOW=-129 ++ SCHAR_MAX=127 ++ SCHAR_OFLOW=128 ++ SCHAR_MIN=-128 ++ SCHAR_UFLOW=-129 ++ UCHAR_MAX=255 ++ UCHAR_OFLOW=256 ++ SHRT_MAX=32767 ++ SHRT_OFLOW=32768 ++ SHRT_MIN=-32768 ++ SHRT_UFLOW=-32769 ++ INT_MAX=2147483647 ++ INT_OFLOW=2147483648 ++ INT_MIN=-2147483648 ++ INT_UFLOW=-2147483649 ++ UINT_MAX=4294967295 ++ UINT_OFLOW=4294967296 ++ LONG_MAX=9223372036854775807 ++ LONG_OFLOW=9223372036854775808 ++ LONG_MIN=-9223372036854775808 ++ LONG_UFLOW=-9223372036854775809 ++ ULONG_MAX=18446744073709551615 ++ ULONG_OFLOW=18446744073709551616 ++ SIZE_MAX=18446744073709551615 ++ SIZE_OFLOW=18446744073709551616 ++ SSIZE_MAX=9223372036854775807 ++ SSIZE_OFLOW=9223372036854775808 ++ SSIZE_MIN=-9223372036854775808 ++ SSIZE_UFLOW=-9223372036854775809 ++ TIME_T_MAX=9223372036854775807 ++ TIME_T_OFLOW=9223372036854775808 ++ TIME_T_MIN=-9223372036854775808 ++ TIME_T_UFLOW=-9223372036854775809 ++ UID_T_MAX=4294967295 ++ UID_T_OFLOW=4294967296 ++ GID_T_MAX=4294967295 ++ GID_T_OFLOW=4294967296 ++ PID_T_MAX=2147483647 ++ PID_T_OFLOW=2147483648 ++ PID_T_MIN=-2147483648 ++ PID_T_UFLOW=-2147483649 ++ OFF_T_MAX=9223372036854775807 ++ OFF_T_OFLOW=9223372036854775808 ++ OFF_T_MIN=-9223372036854775808 ++ OFF_T_UFLOW=-9223372036854775809 ++ INTMAX_MAX=9223372036854775807 ++ INTMAX_OFLOW=9223372036854775808 ++ INTMAX_MIN=-9223372036854775808 ++ INTMAX_UFLOW=-9223372036854775809 ++ UINTMAX_MAX=18446744073709551615 ++ UINTMAX_OFLOW=18446744073709551616 ++ FLT_MIN=1.175494e-38 ++ FLT_MAX=3.402823e+38 ++ DBL_MIN=2.225074e-308 ++ DBL_MAX=1.797693e+308 ++ LDBL_MIN=3.362103e-4932 ++ LDBL_MAX=1.189731e+4932 + test 2147483647 + long_prefix=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + seq -f aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa%5.0f 10000 + sort -R exp + LC_ALL=C + sort + compare out exp + compare_dev_null_ out exp + test 2 = 2 + test xout = x/dev/null + test xexp = x/dev/null + return 2 + case $? in + compare_ out exp + diff -u out exp ++ expr 18446744073709551615 / 200 expr: 18446744073709551615: Numerical result out of range + max_int200= + fail=1 + for opts in -n -h + sort -R exp + LC_ALL=C + sort -n + compare out exp + compare_dev_null_ out exp + test 2 = 2 + test xout = x/dev/null + test xexp = x/dev/null + return 2 + case $? in + compare_ out exp + diff -u out exp + for opts in -n -h + sort -R exp + LC_ALL=C + sort -h + compare out exp + compare_dev_null_ out exp + test 2 = 2 + test xout = x/dev/null + test xexp = x/dev/null + return 2 + case $? in + compare_ out exp + diff -u out exp + Exit 1 + set +e + exit 1 + exit 1 + remove_tmp_ + __st=1 + cleanup_ + : + cd /user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests + chmod -R u+rwx /user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests/gt-sort-discrim.v7CX + rm -rf /user/ecs/berny/depot/coreutils-8.15.74-be17e3/tests/gt-sort-discrim.v7CX + exit 1
