source: patches/patch-2.6.1-test_fix-1.patch @ 2920fa0

Last change on this file since 2920fa0 was 9d2405f, checked in by Jonathan Norman <jon@…>, 12 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>
    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  
    9090# --------------------------------------------------------------
    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"
     95    diff -e a b > ab.diff
     96    cp a c
     97    check 'patch c < ab.diff' <<EOF
    97101check 'cat -A c' <<EOF
Note: See TracBrowser for help on using the repository browser.