db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahler Thomas <thomas.mah...@itellium.com>
Subject RE: non-deterministic test failures, was: RE: junit test failures
Date Fri, 14 Nov 2003 12:51:11 GMT
Hi Olli,

> 
> > If you try ant junit-quick, a fresh copy of the testdatabase is 
> > installed before executing junit-no-compile.
> 
> That is not quite true.  junit-quick delegates to (depends on) 
> junit-no-compile-no-prepare, not to junit-no-compile
> 

oops, you are right...

> junit-no-compile does delete the database:
> \ojb_work\db-ojb>bin\build.bat junit-no-compile
> Buildfile: build.xml
> [..]
> prepare-repository:
>    [delete] Deleting directory ...\ojb_work\db-ojb\target\test
> 
> The essential difference between junit-quick and junit-no-compile
> is that junit-quick does a copy-testdb, whereas junit-no-compile
> uses torque to re-assemble the testdb.
> 
> I have just run junit-quick several times and the problem 
> persists. 

Uh, oh...

> For example, the following odmg test fail non-deterministically:
> 
> Testcase: testLockNode took 0 sec
> 	FAILED
> expected:<7> but was:<5>
> [...]
> 
> Testcase: testAdding took 0 sec
> 	FAILED
> binded DList not found
> [...]
> 
> Testcase: testAddingTestcase: testRemoving took 0,047 sec
> 	FAILED
> database lookup does not find the named DList
> [...]
> 
> Apart from the non-desirable interdependency of the tests
> inside the test suite, we have here non-determinism of the 
> whole test suite.

that's not good :-(
We really have to get rid of this problem.

I'll add it to my todo list...

cu,
Thomas

> Trust me.
> Olli
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message