[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[wdiff-bugs] wdiff-1.0.1 bug report: test suite test 3 (use pager) erron
From: |
John Purnell |
Subject: |
[wdiff-bugs] wdiff-1.0.1 bug report: test suite test 3 (use pager) erroneous test failure |
Date: |
Wed, 28 Sep 2011 12:47:50 +1300 |
In file ./tests/wdiff.at line 196 there is a sed substitution to
globally remove "\r" to work around the screen bug. Unfortunately this
replaces all occurrences of "r" in the file screenlog.0 resulting in
the test failing as can be seen in the contents of
./tests/testsuite.dir/3/testsuite.log:
---
# -*- compilation -*-
3. wdiff.at:170: testing use pager ...
./wdiff.at:187: screen -D -m -L \
env PAGER="$PWD/dummypager" TERM=dumb LC_ALL=C \
wdiff -wW -xX -yY -zZ -a foo.txt bar.txt
:
stderr:
stdout:
./wdiff.at:196: sed 's/^ager/Pager/;s/\r//g;' screenlog.0
--- - 2011-09-28 12:21:43.000000000 +1300
+++ /Downloads/src/wdiff-1.0.1/tests/testsuite.dir/at-groups/3/stdout
2011-09-28
12:21:43.000000000 +1300
@@ -1,4 +1,4 @@
-Pager starting.
-Pager line start WfooX YbarZ end printed.
-Pager now done.
+Page stating.
+Page line stat WfooX YbaZ end pinted.
+Page now done.
screenlog.0:
> Pager starting.
> Pager line start WfooX YbarZ end printed.
> Pager now done.
3. wdiff.at:170: 3. use pager (wdiff.at:170): FAILED (wdiff.at:196)
---
So "Pager" becomes "Page", "start" becomes "stat", and "printed"
becomes "pinted".
Regards
John
- [wdiff-bugs] wdiff-1.0.1 bug report: test suite test 3 (use pager) erroneous test failure,
John Purnell <=