source: patches/patch-2.6.1-test_fix-1.patch@ 7bb1bf01

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 7bb1bf01 was 9d2405f, checked in by Jonathan Norman <jon@…>, 13 years ago

Enabled Patch's test suite and added LFS's patch test patch

  • Property mode set to 100644
File size: 892 bytes
  • tests/crlf-handling

    Submitted by:            Matt Burgess <matthew at linuxfromscratch.org>
    Date:                    2010-01-03
    Initial Package Version: 2.6.1
    Upstream Status:         Submitted
    Origin:                  Matt Burgess
    Description:             Prevents a test from failing when ed is not available.
    
    diff -Naur patch-2.6.1.orig/tests/crlf-handling patch-2.6.1/tests/crlf-handling
    old new  
    8989
    9090# --------------------------------------------------------------
    9191
    92 diff -e a b > ab.diff
    93 cp a c
    94 check 'patch c < ab.diff' <<EOF
     92if ! have_ed ; then
     93    echo "The ed utility is not available; skipping ed related tests"
     94else
     95    diff -e a b > ab.diff
     96    cp a c
     97    check 'patch c < ab.diff' <<EOF
    9598EOF
     99fi
    96100
    97101check 'cat -A c' <<EOF
    981021b^M$
Note: See TracBrowser for help on using the repository browser.