This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 48771

Summary: Commit Validation fails on windows
Product: projects Reporter: Jaroslav Tulach <jtulach>
Component: AntAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: blocker Keywords: TEST
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description Jaroslav Tulach 2004-09-09 13:55:47 UTC
I do not know why, but I have not managed to 
succeed with commit validation on my windows 
computer. The tests in ant module always fail:

testVersionability:
      junit.framework.AssertionFailedError: One 
line modified expected:<1> but was:<106>
	at junit.framework.Assert.fail
(Assert.java:47)
	at junit.framework.Assert.failNotEquals
(Assert.java:282)
	at junit.framework.Assert.assertEquals
(Assert.java:64)
	at junit.framework.Assert.assertEquals
(Assert.java:201)
	at 
org.netbeans.spi.project.support.ant.EditablePrope
rtiesTest.testVersionability
(EditablePropertiesTest.java:131)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)



testComment:
      junit.framework.AssertionFailedError: No 
lines modified expected:<0> but was:<107>
	at junit.framework.Assert.fail
(Assert.java:47)
	at junit.framework.Assert.failNotEquals
(Assert.java:282)
	at junit.framework.Assert.assertEquals
(Assert.java:64)
	at junit.framework.Assert.assertEquals
(Assert.java:201)
	at 
org.netbeans.spi.project.support.ant.EditablePrope
rtiesTest.testComment
(EditablePropertiesTest.java:255)
Comment 1 Jaroslav Tulach 2004-09-09 13:56:40 UTC
The attachement with full test failure is result.tar.gz at:
http://www.netbeans.org/issues/showattachment.cgi?attach_id=17515
Comment 2 David Konecny 2004-09-09 16:18:44 UTC
I believe your working scenario is the same as described in issue
47584 - you share one source checkout from both Unix and Windows.

*** This issue has been marked as a duplicate of 47584 ***
Comment 3 Jaroslav Tulach 2004-09-09 16:44:49 UTC
Well, I do not share checkout between windows and unix. I am just
using command line cvs.
Comment 4 David Konecny 2004-09-10 09:26:31 UTC
"Well, I do not share checkout between windows and unix. I am just
using command line cvs." - what is your line separator in file
ant\project\test\unit\src\org\netbeans\spi\project\support\ant\data\test.properties?
I guess it is not CRLF? Btw. see issue 47584 where I described what
the test does and why it is failing.