| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Use expectations files instead.
(cherry picked from commit 6a6b612286976cc185c898803fe51e4e062bd9eb)
Bug: 12924356
Change-Id: I9b7e71805a80176c873cffe46bed65f81de1903d
|
|
|
|
|
|
|
|
|
|
|
|
| |
The reasons I can do this are:
1) Fixes for other bugs / updates, etc. have made tests pass.
2) Bugs were fixed without removing suppressions.
3) Tests may have been suppressed by accident.
Tested on a local device running a master build.
Bug: 14808340
Change-Id: I7c6600c89ff1cc4ca5337ee952c972bdbf5467e8
|
|
|
|
|
|
|
|
|
|
|
| |
Most removals fit into these categories:
1) Test classes or methods that no longer exist / have been renamed
2) Various odd entries that are not for Junit
tests. Some appear to correspond with some Open-JDK tests so
may share a common heritage.
Bug: 14808340
Change-Id: If829a83cfcf82cac9a0301733b724716087fea05
|
|
|
|
|
|
|
|
| |
This is a removal of tests from org.apache.harmony.luni.tests
that no longer exist (under that package name).
Bug: 14808340
Change-Id: I99e87fc43018596e4be0f4b352cc9a7cc33da4cc
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
org.apache.harmony.tests.java.util.ControlTest
The test is probably broken, but the code under test also looks
broken. Unpicking it all and fixing it all is low priority.
Marking it as known-broken until it can be given the attention it
deserves.
Change-Id: I0e2784aa505ace4ab86149741c2faf94d8432df9
Bug: 13747957
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change introduces NetworkChannel, but only bind() and
getLocalAddress() methods. To avoid breaking existing Android
applications that extend ServerSocketChannel, DatagramChannel and
SocketChannel the methods have been added with concrete
implementations that throw exceptions rather than leaving them
abstract.
In channel tests, usages of channel.socket().bind() and
channel.socket().getLocalSocketAddress() have been changed to
channel.bind() and channel.getLocalAddress(), since the behavior is
close enough and the tests should be written against the channel APIs
as much as possible. Tests have been added for new methods.
Removed further overriding in
DatagramChannelImpl.DatagramSocketAdapter and
SocketChannelImpl.SocketAdapter which revealed some bugs and lack of
clarity in the docs for the socket methods:
Improved the documentation for DatagramSocket.getLocalAddress(),
DatagramSocket.getLocalSocketAddress(),
ServerSocket.getInetAddress(), ServerSocket.getLocalPort(),
ServerSocket.getLocalSocketAddress(), Socket.getLocalAddress(),
Socket.getLocalPort(), Socket.getLocalSocketAddress(). These methods
treat special cases differently.
Fixed a bug in DatagramSocket.getLocalSocketAddress() where it would
incorrect throw an exception if the socket has been closed, which
contradicts the (updated) documentation and the RI. It now returns
null. Added tests.
Fixed a bug in Socket.close(): a closed socket would still report as
being connected. Added tests.
Fixed a bug in Socket.startupSocket() - the socket was recording it
was being bound, but was not updating the cached local address. This
method is called during ServerSocketChannel.accept() and would cause
the socket to report its local address as being the wildcard address,
when it is not. Added a test.
Change-Id: Ibec8527e1c72597e268d23e6c1f03eb16e46cdc4
Bug: 12464155
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Support_PortManager didn't really work, so rewrite all tests
that use it.
Also, dedup OldDatagramSocketTest with the harmony DatagramSocketTest.
Fix various broken test cases and terribly written tests.
bug: 11689863
Change-Id: I4efb9e02eb88517273fff50a0dec1d0262feafb2
|
|
|
|
|
|
|
|
|
|
| |
We explicitly disallow setLevel or setStrategy after
setInput. (It's clearly documented in the method docs).
Presumably, this is to prevent users from shooting
themselves in the foot & causing issues by changing
the strategy / level after we've started deflating.
Change-Id: Ifd65728ff0ec7e47aeec716aeb6f44242573c491
|
|
|
|
| |
Change-Id: I15c25ff373b1ca4acb5e530f75d028b971779549
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- We now guarantee that available() returns 0 iff.
deflater.finished() == true. Note that this is still
inconsistent with the specification of InputStream#available.
- Remove an unnecessary array copy in DeflaterInputStream#read.
- Remove tests that expect an IllegalArgumentException for
negative skip count values. The InputStream spec doesn't mandate
that we must throw here, and it's better to be consistent with
every othem InputStream specialization in the code.
- Remove obsolete failures from brokentests.txt.
bug: 12189307
Change-Id: Ie9b1ad5d7c050b005b5f6f44a5a283bfdaeb1e81
|
|
|
|
|
|
|
| |
Also moves a couple of tests from luni/src/test to
harmony-tests/ where they belong.
Change-Id: I0b441b1fcbd355bd3c66551d16732a671fb64f54
|
|
|
|
|
|
|
| |
This reverts commit d5e281743e55e1daa297fd8043b2d9b6e8e1bed2.
The makefile issue that caused the original build break
has been resolved.
|
|
|
|
|
|
|
|
| |
This reverts commit 81bf28ad31131815d0a36a43a0eca3c29aefdfcd.
Breaks build
Change-Id: I3f1562921ffe8fdbec36971dd65db398c27c92db
|
|
|
|
|
|
|
| |
The vast majority of cleaned up harmony tests
are now in harmony-tests/src/test/org/apache/harmony/tests/
Change-Id: I56c2e484ff434b5618cf6751d602ae9f0db96b30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Harmony was never consistent about where they put their
tests. There's no reason we have to be the same.
Also, there's no need to have separate subtrees for nio,
nio_char etc. etc.
This change makes all existing apache harmony tests
subpackages of "org.apache.harmony.tests" and put them under
libcore/harmony-tests.
We somehow managed to end up with two vastly different
copies of CharsetDecoderTest & CharsetEncoderTest. I've
renamed the copies CharsetDecoder2Test & CharsetEncoder2Test
to avoid having to go in and resolve the complicated
diffs or speculate about the reasons for their
divergence.
Change-Id: Ic34e69c2faab8893edd54e05eccd7091f4a09abd
|
|
|
|
|
|
|
| |
I've erred on the side of caution and treated possibly
broken tests as failures.
Change-Id: Iebb49e5cee11f6e514da70e6c6bc7ac97964b0aa
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There were plenty of bad tests here, but there were some real bugs too.
* DecimalFormat was only handling RoundingMode.UNNECESSARY for double
formatting.
* DecimalFormat was not ensuring that it's superclass' fields were
being correctly updated.
* NumberFormat was throwing NPE for a null object because of an
improved detail message, despite being specified to throw IAE.
* We weren't mapping NumberFormat.Field instances to the corresponding icu4c
UNUM_x_FIELD constant, so we weren't actually setting FieldPosition
objects correctly.
* SimpleDateFormat was not formatting milliseconds correctly with 'S'.
* NativeDecimalFormat wasn't handling JNI NewString OOME correctly.
Bug: 2528220
Bug: 3056865
Bug: 3057080
Bug: 3057090
Change-Id: Iac11f902f2e9649e596e7e7b7bc501b13e956fca
|
|
|
|
|
| |
Bug: 10210999
Change-Id: Ie0686dae1e0b9dc016c1e99af8d9d4e146d73abd
|
|
|
|
|
|
|
| |
More obsolete stuff.
Bug: 10210892
Change-Id: I4a89a2439e38a173971a5b878430cb547d70871d
|
|
|
|
|
|
|
| |
Plus one real bug, in FileChannelImpl. The expectation I've removed was for a
test that doesn't seem to exist in either our tests or the harmony tests.
Change-Id: I1ea99042f3f8897f07ba8b4ad8e9a15f30ace79b
|
|
|
|
|
|
|
|
|
|
|
| |
Finding safe primes for the DH key pair generator can take up to 20
minutes sometimes. Use a pre-defined set of primes instead of skipping
the test altogether because of the extreme amount of time it takes.
This leaves us not testing one software path, but this situation is
strictly better than not running the test at all.
Change-Id: I03d457747e2ec1a2592c1c6350365cbe5aa33759
|
|
|
|
|
|
|
|
| |
These hadn't run at all until recently, and the fact that vogar doesn't
run tests in a way that makes resources accessible hid the fact that the
tests were checked-in broken as well as disabled.
Change-Id: I28d24e01b60411f0f9be7daba6de0376a7f8cac0
|
|
|
|
|
| |
Bug: 6964436
Change-Id: I9a6fd2ec589968743dc6727dad406057b328156d
|
|
|
|
| |
Change-Id: I2daff9fbb29f64366b24927824867ec40551ed83
|
|
|
|
|
| |
Change-Id: I1efb88af05a022e8b3efce57d96f2d6e085a5161
http://b/2585285
|
|
|
|
|
|
| |
Change-Id: I058daff4670945455385e3b3c7070ae6c6570940
OldStringBufferTest: don't assume a max heap size exists
URLEncoderTest: don't test exception priority
|
|
|
|
| |
Change-Id: I3ff901d56df34e29830efbcd6e5e2a619629a733
|
|
|
|
|
|
|
|
| |
This removes all tests duplicated in Harmony's test suite, and
moves the rest into the libcore.java.lang package.
Change-Id: Ic2fe12cc1e10513abb721d98e7b9b3a2e00192f5
http://b/3246523
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
Harmony" into gingerbread
Merge commit 'bf1bdd0ad12aabf9fbbbda30a938ce2b625d38c9'
* commit 'bf1bdd0ad12aabf9fbbbda30a938ce2b625d38c9':
Remove logging tests duplicated from Harmony
|
| |
| |
| |
| | |
Change-Id: I057552b555ee891810d4577b7359ed309d5c1611
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
Harmony." into gingerbread
Merge commit '6397c0c25ce2a972a8ba731448007bb9619b7a6d'
* commit '6397c0c25ce2a972a8ba731448007bb9619b7a6d':
Remove FormatterTest tests duplicated with Harmony.
|
| |
| |
| |
| | |
Change-Id: I9c95aac22b9df7efff6595e94700a17cfc5d3d7b
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
tests failing in Hudson." into gingerbread
Merge commit 'ae1f467fd324947afe525263ef4b3e9ff2582d7d' into dalvik-dev
* commit 'ae1f467fd324947afe525263ef4b3e9ff2582d7d':
Add expectations for some tests failing in Hudson.
|
| |
| |
| |
| | |
Change-Id: Iee064e099a30d4ab6de7a80863df6b1485e23b38
|
| |
| |
| |
| |
| |
| |
| |
| | |
This allows us to print the expectation description when a test
fails. I'll follow this up by wiring vogar to do very clever things
with the statuses of linked bugs.
Change-Id: Idc3048b5dafff864675e760a3bb0c8fea48bb807
|
| |
| |
| |
| | |
Change-Id: I983ad951e6445744b39dc763cf425172d2f4da31
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Some deflater tests fail because they expect a specific byte sequence in
the compressed form. Our compressed form is valid but has a different
sequence. I've written new tests to cover the related APIs and suppressed
the broken tests.
The other deleted tests are duplicated exactly from Harmony. I'm removing
our copy.
Change-Id: If480d54948e634e4f6b1018da30951a1d4d07b49
|
|/
|
|
| |
Change-Id: I6aab06d22dd59b4c9ca1ffce7413e0f4adf472e1
|
|
|
|
| |
Change-Id: Ifdc2cb5f007ac4ab4169833f9fb144c16b9a2888
|
|
|
|
| |
Change-Id: Ic28d57e90e36cbb40b66393acc53296d75d77277
|
|
|
|
|
| |
Bug: 2788945
Change-Id: I959df2c338a4d85497a23705b553f0c749ef1070
|
|
|
|
|
|
|
|
|
| |
Removing tests duplicated with Harmony. Tests methods in such test classes
are moved to their own test classes in our test tree.
Removing all Pack200 tests; these don't make sense on a dalvik vm.
Change-Id: Ia2f6a542b4e3e3b50962c83dc2700bd4ee07f363
|
|
|
|
|
|
|
|
|
|
|
| |
Some tests were copied from Harmony and fixed in Dalvik. I've applied
fixes in our SVN copy of Harmony and removed the duplicate copies here.
Also improving error reporting for missing resource files. Some of our
serialization tests were failing due to missing files; the corresponding
Harmony tests succeed.
Change-Id: I73872b03674f8731ff237f575dcda66f9d53c06a
|
|
|
|
|
|
|
|
|
|
|
|
| |
Moving TimeZoneTest to OldTimeZoneTest and removing test methods
that are duplicated between libcore and Harmony.
Also adding Objects.equals() to make implementing this easy,
and removing redundant time zone tests. I did a few searches
to find candidate code that could take advantage of this new
utility method and adopted it there.
Change-Id: I133298f1b36d755bd35c1ad0dc0ab366fd164270
|
|
|
|
|
|
| |
(Maybe vogar should make this a loud warning rather than a failure?)
Change-Id: I9f178348c0ecbb432b26e3c98a5fb7b388a95ebc
|
|
|
|
|
|
|
|
| |
Add three more broken tests, and fix expectations that used '.' instead of '#'.
It would be nice if vogar would warn about non-pattern test names that aren't
actually found in the test suite.
Change-Id: I07d460744a8d9e40364b6d36b25da8e3d569fdb5
|
|
|
|
|
|
| |
I'll commit a vogar bug fix to the public repository too.
Change-Id: I3c18a1b8f74303aab65f67940ff41539f9620df1
|
|
|
|
|
|
| |
throws.
Change-Id: I5e9dfc8c9bbeee44ca8805bd7089d5b190b3d533
|
|
|
|
| |
Change-Id: Ic8fc1364c7b596ce1872fab2df14f31e45554bb3
|
|
|
|
| |
Change-Id: I7f98bbbb3c68efee61b88acc3bc25f2c9990b519
|