MSYS2-packages/m4/0002-m4-1.4.19-skip-tests-when-temp-directories-cannot-be-generated.patch
Jannick ded4f2f14c m4: Upgrade to 1.4.19
* PKGBUILD:

  - add (make)dependency to libiconv (apparently new with m4 1.4.19)
  - remove INSTALL directive, since routines in m4.install are
    automatically covered by makepkg

  ** prepare:
  - remove any M4 macro patches to make running 'autoreconf' obsolete
  - add patches for test suite

  ** build:
  - apply VPATH build
  - fool configure that gcc is CYGWIN to be able to use CONFIGURE straight
    out of the box (without patching code bits missing MSYS as system).
    For GNULIB this is a nightmare.
  - enable multi-threading

  **check:
  - pass list of tests still failing after applying patch skipping tests
    due to permission access issues
    (see 0003-m4-1.1.19-skip-tests-when-temp-directories-cannot-be-generated.patch)
    on to 'make check' via variable XFAIL_TESTS. This applies to GNULIB
    tests checking the environment only, but not M4 features, though.
  - NB: All tests except those in variable XFAIL_TESTS succeed.

* 0001-m4-1.4.19-tests-refine-error-messages.patch:
  - added, no functional change
* 0002-m4-1.1.19-skip-tests-when-temp-directories-cannot-be-generated.patch:
  - added, skip test failing in the prep phase when generating directories
    with particular access rights
* m4.install:
  - removed (since obsolete as functionality covered by pacman/makepkg)
* m4-1.4.18-msys2.patch:
  - removed, since configure is used straight out of the box being fooled
    that a CYGWIN compiler is used
2021-06-06 11:48:21 +02:00

39 lines
1.2 KiB
Diff

From 4e7c6c8b67d6570418be06a399f684570491563d Mon Sep 17 00:00:00 2001
From: Jannick <thirdedition@gmx.net>
Date: Sat, 5 Jun 2021 19:25:58 +0200
Subject: [PATCH] m4 1.4.19: skip tests when temp directories cannot be
created
* tests/init.sh:
- skip test when required temporary directories cannot be generated
due to access limitations. Before test failed.
---
tests/init.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/init.sh b/tests/init.sh
index 9ef8348..868fbdf 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -374,7 +374,7 @@ mktempd_ ()
test $MAX_TRIES_ -le $i_ && break;
i_=`expr $i_ + 1`
done
- fail_ "$err_"
+ skip_ "$err_"
}
# =============================================================================
@@ -404,7 +404,7 @@ setup_ ()
# Create and enter the temporary directory.
pfx_=`testdir_prefix_`
test_dir_=`mktempd_ "$initial_cwd_" "$pfx_-$ME_.XXXX"` \
- || fail_ "failed to create temporary directory in $initial_cwd_"
+ || skip_ "failed to create temporary directory in $initial_cwd_"
cd "$test_dir_" || fail_ "failed to cd to temporary directory"
# Set variables srcdir, builddir, for the convenience of the test.
case $srcdir in
--
2.31.1.windows.1