Commit Graph

345 Commits

Author SHA1 Message Date
Hamlin Li
a7d4828bea 8169764: output more information when java/nio/channels/AsynchronousSocketChannel/Basic.java fails
Reviewed-by: alanb
2016-11-16 17:29:14 -08:00
Martin Buchholz
97ed09e075 8165643: SecureDirectoryStream doesn't work on linux non-x86
Reviewed-by: alanb
2016-09-07 14:44:59 -07:00
Brian Burkhalter
925586066c 8165000: Selector.select(timeout) throws IOException when timeout is a large long
Clamp the timeout passed to kevent0 to the largest value that does not provoke the error.

Reviewed-by: clanger, alanb
2016-09-02 12:38:27 -07:00
Christoph Langer
ea29d586dd 8164649: Cleanup of test java/nio/channels/FileChannel/Lock.java
Reviewed-by: alanb
2016-08-29 11:23:34 +02:00
Alan Bateman
97fca016ab 8066943: (fs) Path.relativize() gives incorrect result for ".."
Reviewed-by: prappo, bpb
2016-08-25 10:01:20 +01:00
Brian Burkhalter
34565b8ada 8163136: Add print statements to java/nio/file/WatchService/LotsOfCancels.java
Add some print statements.

Reviewed-by: alanb
2016-08-24 11:23:58 -07:00
Artem Smotrakov
8fe1b11fa9 8164166: Make sure java/nio/channels tests shutdown asynchronous channel groups
Reviewed-by: alanb
2016-08-24 10:58:29 -07:00
Brian Burkhalter
dc3e5ed9fb 8164556: Drop AAC and FLAC from content type check in java/nio/file/Files/probeContentType/Basic.java
Remove file extensions of AAC and FLAC audio encodings from the list of extensions verified.

Reviewed-by: alanb
2016-08-23 10:51:17 -07:00
Artem Smotrakov
4b68f37bfe 8164159: java/nio/file/WatchService/UpdateInterference.java test leaves daemon threads
Reviewed-by: alanb
2016-08-23 10:38:01 -07:00
Brian Burkhalter
13f73f71eb 8164432: java/nio/file/Files/probeContentType/Basic.java fails on windows for Content type: audio/vnd.dlna.adts
Add audio/vnd.dlna.adts as an allowed MIME type for the aac extension.

Reviewed-by: darcy
2016-08-19 13:38:12 -07:00
Mandy Chung
e2a0ff3e0d 8136930: Simplify use of module-system options by custom launchers
Reviewed-by: alanb, ksrini, henryjen, sundar
2016-08-10 15:51:25 -07:00
Brian Burkhalter
911dda4ee1 8163305: Add some print instrumentation to java/nio/channels/Selector/RacyDeregister
Perform more iterations on Windows, and on all platforms if the test enters the failure branch, poll for an extra period of time to determine whether it might have succeeded with a longer timeout

Reviewed-by: chegar
2016-08-09 07:50:26 -07:00
Brian Burkhalter
ba0558addb 8163431: probeContentType/Basic.java fails after changes for JDK-8146215
Allow multiple legal MIME type interpretations for certain extensions.

Reviewed-by: chegar
2016-08-09 07:43:48 -07:00
Brian Burkhalter
97b666ee29 8162745: content-types.properties files are missing some modern types
Add some content types from HTML5 and Xiph.

Reviewed-by: rriggs, chegar
2016-08-08 13:58:14 -07:00
Brian Burkhalter
522e112b4a 8146215: (fs) java/nio/file/Files/probeContentType/Basic.java failed frequently on Solaris-sparc with Unexpected type: text/plain
Append a FileTypeDetector using java.net.FileNameMap as a fallback on all platforms

Reviewed-by: alanb, rriggs, naoto
2016-08-08 13:57:51 -07:00
Alejandro Murillo
83f8829c06 Merge 2016-08-05 09:50:29 -07:00
Brian Burkhalter
0af4f24e45 8162902: Add some debugging output to test/java/nio/file/WatchService/DeleteInterference
Add printing of iteration numbers

Reviewed-by: alanb
2016-08-04 14:29:27 -07:00
Alejandro Murillo
435f7046be Merge 2016-07-30 00:11:02 +00:00
Paul Sandoz
8dc58ab506 8162458: Buffer view implementations use incorrect offset for Unsafe access
Reviewed-by: alanb
2016-07-29 10:18:47 +02:00
Brian Burkhalter
82e9d18d0e 8162624: (fs) Remove FileTypeDetectors based on libgio and libmagic
Remove GioFileTypeDetector and MagicFileTypeDetector.

Reviewed-by: alanb
2016-07-27 14:27:46 -07:00
Brian Burkhalter
eba2a20a2b 8160220: (fs) Tests in jdk/test/java/nio/file/WatchService leave directory trees behind
Create temporary files by default in a scratch directory.

Reviewed-by: alanb, chegar
2016-07-15 17:49:42 -07:00
Brian Burkhalter
5d404c26b1 8160221: jdk/test/java/nio/channels/FileChannel/Transfers.java leaving files behind
Create temporary files in the test scratch directory instead of in the default temporary file directory.

Reviewed-by: alanb
2016-07-12 07:58:40 -07:00
Brian Burkhalter
465af0b962 8157287: java/nio/file/FileStore/Basic.java failed with "java.nio.file.AccessDeniedException : /zones/zoneone/root "
Ignore AccessDeniedException when testing space attributes.

Reviewed-by: alanb
2016-07-08 16:16:45 -07:00
Brian Burkhalter
70e069ea5d 8160687: (fs) Cannot tell which WatchService test is not deleting temp directories "work*"
Change name of "work" temp directory to "TestName"

Reviewed-by: rriggs
2016-07-01 12:54:18 -07:00
Alan Bateman
40abbd6d10 8140449: (fs) Paths.get("x").relativize("") return ..\ on Windows
Reviewed-by: chegar, rriggs
2016-06-17 17:17:21 +01:00
Alan Bateman
a5e1465831 8066258: Re-examine com.sun.nio.file to see if it should be a supported API
Reviewed-by: chegar
2016-05-30 17:38:05 +01:00
Chris Hegarty
4d950890f2 8155086: Replace usage of -Djdk.launcher.limitmods in tests with -limitmods
Reviewed-by: alanb
2016-05-24 09:18:40 +01:00
Pavel Rappo
baf59c0bd8 8150785: (bf) Hoist slice and duplicate methods up to java.nio.Buffer
Reviewed-by: alanb, rriggs, chegar
2016-05-16 15:10:04 +01:00
Pavel Rappo
976b541ac5 8156931: java.nio.Buffer tests cleanup
Reviewed-by: alanb
2016-05-16 09:54:01 +01:00
Hamlin Li
26ba99921f 8156002: java/nio/channels/SocketChannel/AdaptSocket.java Fails in Mesos on OSX
Reviewed-by: dfuchs
2016-05-10 15:12:04 +08:00
Amy Lu
6f57005359 8156512: Mark several tests from java/nio as intermittently failing
Reviewed-by: alanb
2016-05-09 18:06:57 +08:00
Mandy Chung
b58e171061 8155513: Deprivilege jdk.charsets
Reviewed-by: alanb, chegar
2016-05-05 22:39:36 -07:00
Alex Kashchenko
39846dcf8d 8153925: (fs) WatchService hangs on GetOverlappedResult and locks directory (win)
Co-authored-by: Thomas Mader <tmader@redhat.com>
Reviewed-by: alanb
2016-05-03 07:44:52 +01:00
Chris Hegarty
07cef26155 8044773: Refactor jdk.net API so that it can be moved out of the base module
Reviewed-by: alanb, erikj, mchung
2016-04-27 20:36:02 +01:00
Hamlin Li
636213d1c9 8068693: (ch) test java/nio/channels/AsyncCloseAndInterrupt.java failing
8153209: java/nio/channels/AsyncCloseAndInterrupt.java fails throwing exception: java.nio.channels.ClosedChannelException

For JDK-8068693, 500ms is too short on busy system for channel to be closed or for thread blocking on IO to be interrupted, increase the time from 500ms to 10000ms. for JDK-8153209, it's a test regression due to JDK-8151582, do not sleep when running tests for CONNECT/FINISH_CONNECT, sleep for other test cases.

Reviewed-by: bpb, martin, rriggs
2016-04-12 13:53:48 +08:00
Amy Lu
2929c453fb 8153722: Mark java/nio/channels/Selector/SelectAndClose.java as intermittently failing
Reviewed-by: bpb, darcy
2016-04-11 12:27:48 +08:00
Huaming Li
f9295881a8 8037360: java/nio/channels/SocketChannel/Connect.java fails intermittently
Reviewed-by: alanb
2016-04-08 16:38:37 +01:00
Amy Lu
3c535e97da 8153563: java/nio/Buffer/Basic.java and CopyDirectMemory.java are failing after JDK-8149469
Reviewed-by: alanb
2016-04-06 16:36:12 +08:00
Alejandro Murillo
e380336101 Merge 2016-03-31 14:25:38 -07:00
Amy Lu
92104d1449 8152749: Mark AdaptorCloseAndInterrupt.java as intermittently failing
8152755: Problem list java/nio/file/WatchService/MayFlies.java

Reviewed-by: alanb
2016-03-25 19:46:48 +08:00
Zoltan Majo
c8858ca3b6 Merge 2016-03-24 16:21:19 +01:00
Paul Sandoz
4485394e3d 8149469: ByteBuffer API and implementation enhancements for VarHandles
Reviewed-by: chegar, alanb
2016-03-24 11:21:18 +01:00
Chris Hegarty
ff2e79c118 Merge 2016-03-22 10:42:32 +00:00
Huaming Li
b69f398c06 8151582: (ch) test java/nio/channels/AsyncCloseAndInterrupt.java failing due to "Connection succeeded"
Reviewed-by: bpb, rriggs, alanb
2016-03-20 07:35:20 +00:00
Alan Bateman
db4d383614 8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282

Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Alexandr Scherbatiy <alexandr.scherbatiy@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Jaroslav Bachorik <jaroslav.bachorik@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Miroslav Kos <miroslav.kos@oracle.com>
Co-authored-by: Huaming Li <huaming.li@oracle.com>
Co-authored-by: Sean Mullan <sean.mullan@oracle.com>
Co-authored-by: Naoto Sato <naoto.sato@oracle.com>
Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Co-authored-by: Philip Race <philip.race@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Sergey Bylokhov <sergey.bylokhov@oracle.com>
Co-authored-by: Alexandre Iline <alexandre.iline@oracle.com>
Co-authored-by: Volker Simonis <volker.simonis@gmail.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Stuart Marks <stuart.marks@oracle.com>
Co-authored-by: Semyon Sadetsky <semyon.sadetsky@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Co-authored-by: Valerie Peng <valerie.peng@oracle.com>
Co-authored-by: Vincent Ryan <vincent.x.ryan@oracle.com>
Co-authored-by: Weijun Wang <weijun.wang@oracle.com>
Co-authored-by: Yuri Nesterenko <yuri.nesterenko@oracle.com>
Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
Co-authored-by: Alexander Kulyakthin <alexander.kulyakhtin@oracle.com>
Co-authored-by: Felix Yang <felix.yang@oracle.com>
Co-authored-by: Andrei Eremeev <andrei.eremeev@oracle.com>
Co-authored-by: Frank Yuan <frank.yuan@oracle.com>
Co-authored-by: Sergei Pikalev <sergei.pikalev@oracle.com>
Co-authored-by: Sibabrata Sahoo <sibabrata.sahoo@oracle.com>
Co-authored-by: Tiantian Du <tiantian.du@oracle.com>
Co-authored-by: Sha Jiang <sha.jiang@oracle.com>
Reviewed-by: alanb, mchung, naoto, rriggs, psandoz, plevart, mullan, ascarpino, vinnie, prr, sherman, dfuchs, mhaupt
2016-03-17 19:04:16 +00:00
Hamlin Li
34313c01e3 8143610: (dc) java/nio/channels/DatagramChannel/AdaptDatagramSocket.java failed intermittently due to SocketTimeoutException
Reviewed-by: alanb
2016-03-08 11:01:38 +00:00
Joe Darcy
57494c431d 8151750: Mark ChangingInterests.java as intermittently failing
Reviewed-by: lancea
2016-03-11 15:30:20 -08:00
Amy Lu
39cfbc6593 8150608: Mark BashStreams.java as intermittently failing and put to ProblemList
Reviewed-by: bpb, rriggs
2016-02-26 09:55:14 +08:00
Brian Burkhalter
4ccb461831 8150204: (fs) Enhance java/nio/file/Files/probeContentType/Basic.java debugging output
Add debugging information to the test.

Reviewed-by: alanb
2016-02-15 16:59:56 -08:00
Yingqi Lu
4dfed66526 6432031: Add support for SO_REUSEPORT
Reviewed-by: alanb, simonis, chegar
2016-02-23 17:41:00 +00:00