Edit

kc3-lang/gnulib/modules/spawn-pipe-tests

Branch :

  • Show log

    Commit

  • Author : Bruno Haible
    Date : 2021-08-30 02:06:23
    Hash : f765c688
    Message : spawn-pipe: Fix test failure when running under QEMU user-mode. * tests/test-spawn-pipe-child.c: Include <stdbool.h>, <string.h>, qemu.h. (main): Under QEMU user-mode, allow fd 2 or fd 3 to be open. * modules/spawn-pipe-tests (Files): Add qemu.h. (Depends-on): Add stdbool.

  • modules/spawn-pipe-tests
  • Files:
    tests/test-spawn-pipe.sh
    tests/test-spawn-pipe-main.c
    tests/test-spawn-pipe-child.c
    tests/test-spawn-pipe-script.c
    tests/executable-script
    tests/executable-script.sh
    tests/executable-shell-script
    tests/qemu.h
    tests/macros.h
    
    Depends-on:
    close
    msvc-inval
    stdbool
    stdint
    
    configure.ac:
    
    Makefile.am:
    TESTS += test-spawn-pipe.sh
    check_PROGRAMS += test-spawn-pipe-main test-spawn-pipe-child
    test_spawn_pipe_main_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
    # The test-spawn-pipe-child program must be a real executable, not a libtool
    # wrapper script, and should link against as few libraries as possible.
    # Therefore don't link it against any libraries other than -lc.
    test_spawn_pipe_child_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
    test_spawn_pipe_child_LDADD =
    
    TESTS += test-spawn-pipe-script
    check_PROGRAMS += test-spawn-pipe-script
    test_spawn_pipe_script_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
    test_spawn_pipe_script_CPPFLAGS = $(AM_CPPFLAGS) -DSRCDIR=\"$(srcdir)/\"