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 46658 - failure UndoRedoCooperationTest
Summary: failure UndoRedoCooperationTest
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 4.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2004-07-28 10:35 UTC by pzajac
Modified: 2008-12-22 18:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test log (2.79 KB, text/plain)
2004-07-28 10:36 UTC, pzajac
Details
test log (4.16 KB, text/plain)
2004-08-17 10:14 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2004-07-28 10:35:32 UTC
[200407270649]
for details see to the attachment.

	Status	Message	Workdir	Time(ms)
testDeadlock8692	fail	Text contains orignal
version expected:<Aho> but was:<oj >	No 	1430
testUndoRedo	fail	Text contains orignal version
expected:<Aho> but was:<oj >	No 	1011
Comment 1 pzajac 2004-07-28 10:36:08 UTC
Created attachment 16501 [details]
test log
Comment 2 Petr Nejedly 2004-07-31 21:38:07 UTC
Yardo, this should interest you....
Comment 3 Jaroslav Tulach 2004-08-02 07:46:57 UTC
Yes, it has to be of my interest.
Comment 4 Jaroslav Tulach 2004-08-02 08:27:35 UTC
Are you really sure that you have the sources and tests are
synchronized? I do not believe that this test may fall.
Comment 5 pzajac 2004-08-10 09:52:11 UTC
The test fails again.

      junit.framework.ComparisonFailure: Text contains orignal version
expected:<Aho> but was:<oj
>
	at junit.framework.Assert.assertEquals(Assert.java:81)
	at
org.openide.text.UndoRedoCooperationTest.doTest(UndoRedoCooperationTest.java:164)
	at
org.openide.text.UndoRedoCooperationTest.testDeadlock8692(UndoRedoCooperationTest.java:132)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at org.netbeans.junit.NbTestCase.run(NbTestCase.java:119)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176)
	at
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127)
	at
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41)

   

Comment 6 Jaroslav Tulach 2004-08-10 13:08:41 UTC
The bug is likely in the test, it should wait for AWT thread to
process all of its pending tasks.

openide/test/unit/src/org/openide/text/UndoRedoCooperationTest.java,v
 <--  UndoRedoCooperationTest.java
new revision: 1.4
Comment 7 pzajac 2004-08-17 09:58:54 UTC
The test fails again.
Comment 8 pzajac 2004-08-17 10:14:57 UTC
Created attachment 16869 [details]
test log
Comment 9 Jaroslav Tulach 2004-08-24 16:04:53 UTC
Could be caused by the same bug as issue 47022.
Comment 10 pzajac 2004-08-27 12:48:04 UTC
the test passed