[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] Fix testsuite for bash-5
From: |
Jan Kratochvil |
Subject: |
[patch] Fix testsuite for bash-5 |
Date: |
Mon, 19 Aug 2019 12:15:29 +0200 |
User-agent: |
Mutt/1.12.1 (2019-06-15) |
Hi,
151 testsuite failures (listed at the bottom) get fixed by the attached patch
with bash-5 (tested bash-5.0.7-3.fc31.x86_64).
Tested with GIT trunk: 4677fc349ce759069c9dc8f099a72e77651f1f7b
I think it is due to (from bash-5 release notes):
------------------------------------------------------------------------------
There are a few incompatible changes between bash-4.4 and bash-5.0. The
changes to how nameref variables are resolved means that some uses of
namerefs will behave differently, though I have tried to minimize the
compatibility issues. By default, the shell only sets BASH_ARGC and
BASH_ARGV at startup if extended debugging mode is enabled; it was an
oversight that it was set unconditionally and caused performance issues
when scripts were passed large numbers of arguments.
------------------------------------------------------------------------------
It was printing in each of the testcases:
------------------------------------------------------------------------------
./acgeneral.at:13: $at_diff "at_config_vars-state-env.r1"
"at_config_vars-state-env.r2"
--- /dev/null 2019-08-19 09:18:27.031803111 +0200
+++
/quad/home/jkratoch/redhat/autoconf/tests/testsuite.dir/at-groups/388/stdout
2019-08-19 12:06:12.896511838 +0200
@@ -0,0 +1,13 @@
+--- at_config_vars-state-env.r1 2019-08-19 12:06:12.893511810 +0200
++++ at_config_vars-state-env.r2 2019-08-19 12:06:12.894511819 +0200
+@@ -3,8 +3,8 @@
+ BASH=/bin/sh
+
BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
+ BASH_ALIASES=()
+-BASH_ARGC=()
+-BASH_ARGV=()
++BASH_ARGC=([0]="1")
++BASH_ARGV=([0]="-C")
+ BASH_CMDS=()
+ BASH_LINENO=([0]="0")
+ BASH_SOURCE=([0]="./configure")
./acgeneral.at:13: exit code was 1, expected 0
------------------------------------------------------------------------------
These 3 FAILs remain unfixed:
80: LINENO FAILED (m4sh.at:268)
363: AC_REPLACE_FUNCS FAILED (semantics.at:201)
409: AC_SYS_INTERPRETER FAILED (acspecific.at:13)
Jan Kratochvil
239: AC_CONFIG_COMMANDS with empty commands FAILED (torture.at:26)
240: AC_CONFIG_COMMANDS with temporary directory FAILED (torture.at:35)
277: AC_TRY_LINK_FUNC FAILED (compile.at:390)
279: AC_NO_EXECUTABLES FAILED (aclang.at:13)
280: AC_REQUIRE_CPP FAILED (aclang.at:14)
281: Extensions FAILED (c.at:33)
283: C keywords FAILED (c.at:75)
284: AC_PROG_CPP requires AC_PROG_CC FAILED (c.at:93)
288: AC_NO_EXECUTABLES (working linker) FAILED (c.at:233)
289: AC_NO_EXECUTABLES (broken linker) FAILED (c.at:243)
294: AC_C_BACKSLASH_A FAILED (acc.at:13)
295: AC_C_BIGENDIAN FAILED (acc.at:14)
296: AC_C_CHAR_UNSIGNED FAILED (acc.at:15)
297: AC_C_FLEXIBLE_ARRAY_MEMBER FAILED (acc.at:16)
298: AC_C_INLINE FAILED (acc.at:17)
299: AC_C_PROTOTYPES FAILED (acc.at:18)
300: AC_C_RESTRICT FAILED (acc.at:19)
301: AC_C_STRINGIZE FAILED (acc.at:20)
302: AC_C_TYPEOF FAILED (acc.at:21)
303: AC_C_VARARRAYS FAILED (acc.at:22)
304: AC_C__GENERIC FAILED (acc.at:23)
305: AC_OPENMP FAILED (acc.at:24)
306: AC_PROG_CC_C_O FAILED (acc.at:25)
307: AC_PROG_CPP_WERROR FAILED (acc.at:26)
308: AC_PROG_GCC_TRADITIONAL FAILED (acc.at:27)
312: GNU Fortran 77 FAILED (fortran.at:31)
313: GNU Fortran FAILED (fortran.at:61)
331: AC_F77_IMPLICIT_NONE FAILED (acfortran.at:13)
332: AC_F77_MAIN FAILED (acfortran.at:14)
333: AC_F77_WRAPPERS FAILED (acfortran.at:15)
334: AC_FC_CHECK_BOUNDS FAILED (acfortran.at:16)
335: AC_FC_FIXEDFORM FAILED (acfortran.at:17)
336: AC_FC_FREEFORM FAILED (acfortran.at:18)
337: AC_FC_IMPLICIT_NONE FAILED (acfortran.at:19)
338: AC_FC_LINE_LENGTH FAILED (acfortran.at:20)
339: AC_FC_MAIN FAILED (acfortran.at:21)
340: AC_FC_MODULE_EXTENSION FAILED (acfortran.at:22)
341: AC_FC_MODULE_FLAG FAILED (acfortran.at:23)
342: AC_FC_MODULE_OUTPUT_FLAG FAILED (acfortran.at:24)
343: AC_FC_PP_DEFINE FAILED (acfortran.at:25)
344: AC_FC_WRAPPERS FAILED (acfortran.at:26)
345: AC_PROG_F77_C_O FAILED (acfortran.at:27)
346: AC_PROG_FC_C_O FAILED (acfortran.at:28)
349: Erlang FAILED (erlang.at:30)
350: AC_ERLANG_CHECK_LIB FAILED (erlang.at:52)
351: AC_ERLANG_SUBST_ROOT_DIR FAILED (erlang.at:72)
352: AC_ERLANG_SUBST_LIB_DIR FAILED (erlang.at:89)
353: AC_ERLANG_SUBST_INSTALL_LIB_DIR FAILED (erlang.at:106)
354: AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR FAILED (erlang.at:114)
355: AC_ERLANG_SUBST_ERTS_VER FAILED (erlang.at:128)
356: Go FAILED (go.at:30)
358: AC_CHECK_LIB FAILED (semantics.at:33)
359: AC_SEARCH_LIBS FAILED (semantics.at:77)
360: AC_SEARCH_LIBS (none needed) FAILED (semantics.at:90)
361: AC_CHECK_DECLS FAILED (semantics.at:106)
362: AC_CHECK_FUNCS FAILED (semantics.at:167)
367: AC_CHECK_MEMBER FAILED (semantics.at:313)
368: AC_CHECK_MEMBERS FAILED (semantics.at:339)
369: AC_CHECK_ALIGNOF FAILED (semantics.at:354)
370: AC_CHECK_ALIGNOF (cross compile) FAILED (semantics.at:354)
371: AC_CHECK_ALIGNOF struct FAILED (semantics.at:371)
372: AC_CHECK_ALIGNOF struct (cross compile) FAILED (semantics.at:371)
373: AC_CHECK_SIZEOF FAILED (semantics.at:383)
374: AC_CHECK_SIZEOF (cross compile) FAILED (semantics.at:383)
375: AC_CHECK_SIZEOF struct FAILED (semantics.at:399)
376: AC_CHECK_SIZEOF struct (cross compile) FAILED (semantics.at:399)
377: AC_CHECK_TYPES FAILED (semantics.at:424)
379: AC_CHECK_FILES FAILED (semantics.at:474)
385: AC_SYS_RESTARTABLE_SYSCALLS FAILED (semantics.at:755)
386: AC_FUNC_SETVBUF_REVERSED FAILED (semantics.at:756)
387: AC_FUNC_WAIT3 FAILED (semantics.at:757)
388: AC_ARG_ENABLE FAILED (acgeneral.at:13)
389: AC_ARG_PROGRAM FAILED (acgeneral.at:14)
390: AC_ARG_WITH FAILED (acgeneral.at:15)
391: AC_CHECK_DECLS_ONCE FAILED (acgeneral.at:16)
392: AC_EGREP_CPP FAILED (acgeneral.at:17)
393: AC_EGREP_HEADER FAILED (acgeneral.at:18)
394: AC_LIBOBJ FAILED (acgeneral.at:19)
395: AC_LIBSOURCES FAILED (acgeneral.at:20)
396: AC_PREFIX_DEFAULT FAILED (acgeneral.at:21)
410: AC_SYS_LARGEFILE FAILED (acspecific.at:14)
411: AC_SYS_LONG_FILE_NAMES FAILED (acspecific.at:15)
412: AC_SYS_POSIX_TERMIOS FAILED (acspecific.at:16)
423: AC_PROG_AWK FAILED (acprograms.at:13)
424: AC_PROG_FGREP FAILED (acprograms.at:14)
425: AC_PROG_INSTALL FAILED (acprograms.at:15)
426: AC_PROG_LEX FAILED (acprograms.at:16)
427: AC_PROG_LN_S FAILED (acprograms.at:17)
428: AC_PROG_MAKE_SET FAILED (acprograms.at:18)
429: AC_PROG_MKDIR_P FAILED (acprograms.at:19)
430: AC_PROG_RANLIB FAILED (acprograms.at:20)
431: AC_PROG_SED FAILED (acprograms.at:21)
432: AC_PROG_YACC FAILED (acprograms.at:22)
436: AC_CHECK_HEADERS_ONCE FAILED (acheaders.at:13)
437: AC_CHECK_HEADER_STDBOOL FAILED (acheaders.at:14)
438: AC_HEADER_ASSERT FAILED (acheaders.at:15)
439: AC_HEADER_MAJOR FAILED (acheaders.at:16)
440: AC_HEADER_RESOLV FAILED (acheaders.at:17)
441: AC_HEADER_STAT FAILED (acheaders.at:18)
442: AC_HEADER_STDBOOL FAILED (acheaders.at:19)
443: AC_HEADER_TIOCGWINSZ FAILED (acheaders.at:20)
450: AC_STRUCT_DIRENT_D_INO FAILED (actypes.at:13)
451: AC_STRUCT_DIRENT_D_TYPE FAILED (actypes.at:14)
452: AC_STRUCT_ST_BLOCKS FAILED (actypes.at:15)
453: AC_STRUCT_TIMEZONE FAILED (actypes.at:16)
454: AC_TYPE_INT16_T FAILED (actypes.at:17)
455: AC_TYPE_INT32_T FAILED (actypes.at:18)
456: AC_TYPE_INT64_T FAILED (actypes.at:19)
457: AC_TYPE_INT8_T FAILED (actypes.at:20)
458: AC_TYPE_INTMAX_T FAILED (actypes.at:21)
459: AC_TYPE_INTPTR_T FAILED (actypes.at:22)
460: AC_TYPE_LONG_DOUBLE FAILED (actypes.at:23)
461: AC_TYPE_LONG_DOUBLE_WIDER FAILED (actypes.at:24)
462: AC_TYPE_MODE_T FAILED (actypes.at:25)
463: AC_TYPE_OFF_T FAILED (actypes.at:26)
464: AC_TYPE_SSIZE_T FAILED (actypes.at:27)
465: AC_TYPE_UINT16_T FAILED (actypes.at:28)
466: AC_TYPE_UINT32_T FAILED (actypes.at:29)
467: AC_TYPE_UINT64_T FAILED (actypes.at:30)
468: AC_TYPE_UINT8_T FAILED (actypes.at:31)
469: AC_TYPE_UINTMAX_T FAILED (actypes.at:32)
470: AC_TYPE_UINTPTR_T FAILED (actypes.at:33)
478: AC_CHECK_FUNCS_ONCE FAILED (acfunctions.at:13)
479: AC_FUNC_CHOWN FAILED (acfunctions.at:14)
480: AC_FUNC_CLOSEDIR_VOID FAILED (acfunctions.at:15)
481: AC_FUNC_ERROR_AT_LINE FAILED (acfunctions.at:16)
482: AC_FUNC_FNMATCH FAILED (acfunctions.at:17)
483: AC_FUNC_FORK FAILED (acfunctions.at:18)
484: AC_FUNC_FSEEKO FAILED (acfunctions.at:19)
485: AC_FUNC_GETGROUPS FAILED (acfunctions.at:20)
486: AC_FUNC_GETMNTENT FAILED (acfunctions.at:21)
487: AC_FUNC_GETPGRP FAILED (acfunctions.at:22)
488: AC_FUNC_LSTAT FAILED (acfunctions.at:23)
489: AC_FUNC_MALLOC FAILED (acfunctions.at:24)
490: AC_FUNC_MBRTOWC FAILED (acfunctions.at:25)
491: AC_FUNC_MEMCMP FAILED (acfunctions.at:26)
492: AC_FUNC_MKTIME FAILED (acfunctions.at:27)
493: AC_FUNC_MMAP FAILED (acfunctions.at:28)
494: AC_FUNC_OBSTACK FAILED (acfunctions.at:29)
495: AC_FUNC_REALLOC FAILED (acfunctions.at:30)
496: AC_FUNC_SELECT_ARGTYPES FAILED (acfunctions.at:31)
497: AC_FUNC_SETPGRP FAILED (acfunctions.at:32)
498: AC_FUNC_STAT FAILED (acfunctions.at:33)
499: AC_FUNC_STRCOLL FAILED (acfunctions.at:34)
500: AC_FUNC_STRERROR_R FAILED (acfunctions.at:35)
501: AC_FUNC_STRFTIME FAILED (acfunctions.at:36)
502: AC_FUNC_STRNLEN FAILED (acfunctions.at:37)
503: AC_FUNC_STRTOD FAILED (acfunctions.at:38)
504: AC_FUNC_STRTOLD FAILED (acfunctions.at:39)
505: AC_FUNC_UTIME_NULL FAILED (acfunctions.at:40)
506: AC_FUNC_VPRINTF FAILED (acfunctions.at:41)
--- a/tests/local.at
+++ b/tests/local.at
@@ -382,6 +382,8 @@ do
/'\'\\\$\''=/ d
/^argv=/ d
/^ARGC=/ d
+ /^BASH_ARGC=/ d
+ /^BASH_ARGV=/ d
' $act_file >at_config_vars-$act_file
done
AT_CMP([at_config_vars-$1], [at_config_vars-$2])[]dnl
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch] Fix testsuite for bash-5,
Jan Kratochvil <=