[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
test-yesno.sh failure
From: |
Jim Meyering |
Subject: |
test-yesno.sh failure |
Date: |
Sun, 27 Sep 2009 08:51:48 +0200 |
Kurt Roeckx wrote:
> Source: coreutils
> Version: 7.5-1
...
>> Build-Depends: gettext (>= 0.10.37), debhelper, dh-buildinfo, texinfo (>=
>> 4.2), groff, dpatch, libattr1-dev | not+linux-gnu, libacl1-dev |
>> not+linux-gnu, libselinux1-dev (>= 1.32) | not+linux-gnu, gperf, bison
>
> [...]
>
>> Toolchain package versions: libc6.1-dev_2.9-26 linux-libc-dev_2.6.30-6
>> g++-4.3_4.3.4-2 gcc-4.3_4.3.4-2 binutils_2.19.91.20090910-1
>> libstdc++6_4.4.1-4 libstdc++6-4.3-dev_4.3.4-2
>
> [...]
>
>> FAIL: test-yesno.sh (exit: 1)
>> =============================
>>
>> ./test-yesno.sh: 24: n: not found
>> ./test-yesno.sh: 25: y: not found
>> ./test-yesno.sh: 26: does: not found
>> ./test-yesno.sh: 27: n: not found
>> ./test-yesno.sh: 28: EOF: not found
>> t-yesno-xout.tmp t-yesno-out.tmp differ: char 3, line 2
>> ======================================
>> 1 of 128 tests failed
...
> A full build log can be found at:
> http://buildd.debian.org/build.php?arch=alpha&pkg=coreutils&ver=7.5-6
Thanks for the report.
Does the following change fix it?
If so, please tell me what version of bash it's using
so I can add that to the commit log.
>From 0f02aaf44de2d5dc0470bc9ca979f047df7df024 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sun, 27 Sep 2009 08:41:55 +0200
Subject: [PATCH] test-yesno: use here document *without* parameter
substitution...
to prevent the interpretation of ^?.
* tests/test-yesno.sh: Use <<\EOF, not <<EOF on the here
document containing the non-printable ^? (aka DEL, \0177).
Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
---
ChangeLog | 7 +++++++
tests/test-yesno.sh | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f1bcf69..f3e39c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-09-27 Jim Meyering <address@hidden>
+
+ test-yesno: use here document *without* parameter substitution...
+ to prevent the interpretation of ^?.
+ * tests/test-yesno.sh: Use <<\EOF, not <<EOF on the here
+ document containing the non-printable ^? (aka DEL, \0177).
+
2009-09-26 Eric Blake <address@hidden>
argp: fix compilation of getopt
diff --git a/tests/test-yesno.sh b/tests/test-yesno.sh
index 52b94ef..0926683 100755
--- a/tests/test-yesno.sh
+++ b/tests/test-yesno.sh
@@ -19,7 +19,7 @@ else
fi
# Test with seekable stdin; the followon process must see remaining data.
-cat <<EOF > ${p}in.tmp
+cat <<\EOF > ${p}in.tmp
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn - entire line consumed
yn - backspace does not change result
y
--
1.6.5.rc2.177.ga9dd6
- test-yesno.sh failure,
Jim Meyering <=