Changeset 267a27a in mod_gnutls


Ignore:
Timestamp:
Oct 30, 2018, 4:22:55 PM (12 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master
Children:
3aff94d
Parents:
0062ede
Message:

Test suite: Use separate IPC namespaces when enabled

Minimal change that should avoid conflicts between tests over shared
memory segments and mutexes.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r0062ede r267a27a  
    142142dnl Enable test namespaces? Default is "yes".
    143143AC_ARG_ENABLE(test-namespaces,
    144         AS_HELP_STRING([--disable-test-namespaces], [Disable use of network \
    145         namespaces to run tests in parallel (some architectures might not \
    146         support it)]),
     144        AS_HELP_STRING([--disable-test-namespaces], [Disable use of \
     145        namespaces for tests (limits parallelization)]),
    147146        [use_netns=$enableval], [use_netns=yes])
    148147
    149 # Check if "unshare" is available and has permission to create network
    150 # and user namespaces
     148# Check if "unshare" is available and has permission to create
     149# network, IPC, and user namespaces
    151150AC_PATH_PROG([UNSHARE], [unshare], [no])
    152151AS_IF([test "${UNSHARE}" != "no"],
    153152      [
    154         AC_MSG_CHECKING([for permission to create network and user namespaces])
    155         AS_IF([${UNSHARE} --net -r /bin/sh -c \
     153        AC_MSG_CHECKING([for permission to use namespaces])
     154        AS_IF([${UNSHARE} --net --ipc -r /bin/sh -c \
    156155                "ip link set up lo && ip addr show" >&AS_MESSAGE_LOG_FD 2>&1],
    157156              [unshare_works="yes"], [unshare_works="no"])
  • test/common.bash

    r0062ede r267a27a  
    9696{
    9797    if [ -n "${USE_TEST_NAMESPACE}" ] && [ -z "${MGS_NETNS_ACTIVE}" ]; then
    98         exec "${UNSHARE}" --net -r /bin/bash -c \
     98        exec "${UNSHARE}" --net --ipc -r /bin/bash -c \
    9999             "export MGS_NETNS_ACTIVE=1; ip link set up lo; exec ${UNSHARE} --user ${0} ${@}"
    100100    fi
Note: See TracChangeset for help on using the changeset viewer.