harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weldon Washburn" <weldon...@gmail.com>
Subject [DRLVM/MMTk] most vmmagic Address tests pass unit test about 7 need fixing
Date Thu, 27 Jul 2006 20:49:24 GMT
All,
I have ported a bunch of vmmagic Address unit tests to drlvm/mmtk.
About 70 of the unit tests pass.   The tests for the rest of vmmagic
(Offset, Word, etc) still need to be ported.   At some point soon all
these tests need to be donated to open source.  Below is a summary of
what's broken in the Address class tests:

1)
Address.max() -- see email from earlier today. (it returns 0 instead
of 0xffffffff);
2)
Address.loadLong() and Address.loadLong(Offset) are not working
3)
Address.store(long) and Address.store(long, Offset) are not working,
but this may be  because these tests depend on loadLong working
correctly
4)
Address.attempt(word...) and Address.attemp(int...) are not working
(it sort of looks like the "attemp" forgot to write to memory)

junit was used as the test harness.  Below is the output of a test
run.  Ultimately they need to become part of regular regression tests.

.Running .AddressTest.zero()
OK
Running .AddressTest.max()
FAILED 1111111111
Running .AddressTest.isZero()
OK
Running .AddressTest.fromInt1()
OK
Running .AddressTest.fromInt2()
OK
Running .AddressTest.storeInt()
OK
Running .AddressTest.storeIntOffset()
OK
Running .AddressTest.storeObjectReference()
OK
Running .AddressTest.storeObjectReferenceOffset()
OK
Running .AddressTest.addInt()
OK
Running .AddressTest.addOffset()
OK
Running .AddressTest.loadByte()
OK
Running .AddressTest.loadByteOffset()
OK
Running .AddressTest.loadChar()
OK
Running .AddressTest.loadCharOffset()
OK
Running .AddressTest.loadDouble()
OK
Running .AddressTest.loadDoubleOffset()
OK
Running .AddressTest.loadFloat()
OK
Running .AddressTest.toInt()
OK
Running .AddressTest.loadAddress()
OK
Running .AddressTest.loadAddressOffset()
OK
Running .AddressTest.loadInt()
OK
Running .AddressTest.loadIntOffset()
OK
Running .AddressTest.storeByte()
OK
Running .AddressTest.storeChar()
OK
Running .AddressTest.storeAddress()
OK
Running .AddressTest.storeAddressOffset()
OK
Running .AddressTest.storeDouble()
OK
Running .AddressTest.storeByteOffset()
OK
Running .AddressTest.storeFloat()
OK
Running .AddressTest.storeFloatOffset()
OK
Running .AddressTest.storeCharOffset()
OK
Running .AddressTest.loadLong()
FAILED 1111111111
Running .AddressTest.loadLongOffset()
FAILED 1111111111
Running .AddressTest.storeLong()
FAILED 1111111111
Running .AddressTest.storeLongOffset()
FAILED 1111111111
Running .AddressTest.storeDoubleOffset()
OK
Running .AddressTest.loadShort()
OK
Running .AddressTest.loadShortOffset()
OK
Running .AddressTest.loadWord()
OK
Running .AddressTest.loadWordOffset()
OK
Running .AddressTest.storeShort()
OK
Running .AddressTest.storeShortOffset()
OK
Running .AddressTest.storeWord()
OK
Running .AddressTest.storeWordOffset()
OK
Running .AddressTest.toWord()
OK
Running .AddressTest.EQ1()
OK
Running .AddressTest.EQ2()
OK
Running .AddressTest.NQ1()
OK
Running .AddressTest.NQ2()
OK
Running .AddressTest.LE()
OK
Running .AddressTest.LT()
OK
Running .AddressTest.GE()
OK
Running .AddressTest.GT()
OK
Running .AddressTest.sub1()
OK
Running .AddressTest.sub2()
OK
Running .AddressTest.sub3()
OK
Running .AddressTest.sub4()
OK
Running .AddressTest.subInt1()
OK
Running .AddressTest.subInt2()
OK
Running .AddressTest.subInt3()
OK
Running .AddressTest.diff1()
OK
Running .AddressTest.diff2()
OK
Running .AddressTest.diff3()
OK
Running .AddressTest.prepareInt()
OK
Running .AddressTest.attemptInt()
FAILED 1111111111
Running .AddressTest.prepareWord()
OK
Running .AddressTest.attemptWord()
FAILED 1111111111
Running .AddressTest.addExtent()
OK
Running .AddressTest.subExtent()
OK
Running .AddressTest.subExtent3()
OK
Running .AddressTest.subExtent4()
OK

Time: 0.11

OK (1 test)




-- 
Weldon Washburn
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message