commit | c0bd21cff10f290176ba780fefa521b8df5ac2ad | [log] [tgz] |
---|---|---|
author | Shubham Ajmera <shubhamajmera@google.com> | Tue Apr 05 19:10:23 2016 +0100 |
committer | Shubham Ajmera <shubhamajmera@google.com> | Mon Apr 11 13:21:41 2016 +0100 |
tree | ca31664fbe56c1899c4f61a8b9fe9d494a1fbdb1 | |
parent | f38c09e12c553d1054739ab22f80ddbc820f64ec [diff] |
java.nio.channel.FileLock test The tests check the behaviour of FileLock when more than one processe or thread try to hold the file lock. The FileLock should return null if the multiple processes try to obtain the lock, however, it should raise OverlappingFileLockException if the lock is already held by the same runtime. Bug: 27186422 (cherry-picked from commit f16ac2dcde20737e2f437d5c8cd5a321c0c38273) Change-Id: I97184d7735ad05a9b88cf8ee7dbc76177b0210d2