Hi all,
I remember reading about line feed problems (in Linux) during unit tests.
Well, the only such problem appears while running the TestUpload.xml script,
and especially in the
org.apache.tapestry.junit.mock.c19.Two.getUploadMatch() method.
All other tests pass with no errors.
So, I'm just attaching a small patch for that class.
Also, I cannot figure out where to place my clover license (in order for
ant site to build the whole site).
Any suggestions?
Andreas Andreou
Index:
/home/andyhot/workspace31/jakarta-tapestry/framework/src/test/org/apache/tapestry/junit/mock/c19/Two.java
===================================================================
---
/home/andyhot/workspace31/jakarta-tapestry/framework/src/test/org/apache/tapestry/junit/mock/c19/Two.java
(revision 280831)
+++
/home/andyhot/workspace31/jakarta-tapestry/framework/src/test/org/apache/tapestry/junit/mock/c19/Two.java
(working copy)
@@ -64,7 +64,18 @@
System.err.println("Input deviation at index " + i + ";
expected "
+ expectedByte + ", not " + actualByte);
- return false;
+ // hack for linux line feeds
+ if (actualByte==13 && expectedByte==10)
+ {
+ // the next actual should equal our current expected
+ actualByte = actual.read();
+ if (actualByte != expectedByte)
+ return false;
+ }
+ else
+ {
+ return false;
+ }
}
if (actualByte < 0)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]