ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/SemaphoreTest.java
Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Tue Aug 13 00:46:27 2019 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
CVS Tags: HEAD
Changes since 1.44: +0 -1 lines
Diff to previous 1.44
fix imports

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Mon Aug 12 06:21:11 2019 UTC (4 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.43: +6 -8 lines
Diff to previous 1.43
testTryAcquire_timeout: cosmetic improvements

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Tue Jan 23 20:44:11 2018 UTC (6 years, 3 months ago) by jsr166
Branch: MAIN
Changes since 1.42: +2 -3 lines
Diff to previous 1.42
migrate from AssertionFailedError to AssertionError

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Mon May 29 19:15:03 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.41: +4 -2 lines
Diff to previous 1.41
more timeout handling rework; remove most uses of SMALL_DELAY_MS; randomize timeouts and TimeUnits; remove hardcoded 5 second timeouts

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Sun May 14 04:18:31 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.40: +1 -1 lines
Diff to previous 1.40
whitespace

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Sun May 14 03:48:35 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.39: +2 -4 lines
Diff to previous 1.39
switch to randomized fairness for tests that block

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Sun May 14 03:31:53 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.38: +11 -10 lines
Diff to previous 1.38
switch to randomized fairness for tests that block

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Sun May 14 00:38:16 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.37: +22 -13 lines
Diff to previous 1.37
improve testInterruptible

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Sat May 13 23:50:00 2017 UTC (6 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36
claw back some millis using assertThreadBlocks

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Thu Nov 19 03:35:48 2015 UTC (8 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.35: +1 -1 lines
Diff to previous 1.35
testFairLocksFifo: fix very rare "double" race due to hasQueuedThreads "flicker"

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Thu Nov 19 01:36:09 2015 UTC (8 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.34: +9 -4 lines
Diff to previous 1.34
Fix very rare flaky failure in testSerialization_fair

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Sat Apr 25 04:55:31 2015 UTC (9 years ago) by jsr166
Branch: MAIN
Changes since 1.33: +1 -1 lines
Diff to previous 1.33
improve main methods; respect system properties; actually fail if a test fails

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Wed Dec 31 19:58:21 2014 UTC (9 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.32: +1 -1 lines
Diff to previous 1.32
indentation

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Wed Dec 31 19:05:43 2014 UTC (9 years, 4 months ago) by jsr166
Branch: MAIN
Changes since 1.31: +7 -3 lines
Diff to previous 1.31
no wildcard imports

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Mon Jul 25 19:01:08 2011 UTC (12 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.30: +1 -1 lines
Diff to previous 1.30
s/assert/assertTrue/

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Fri Jun 3 05:07:14 2011 UTC (12 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.29: +21 -20 lines
Diff to previous 1.29
improve "uninterruptible" tests

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Tue May 31 16:16:24 2011 UTC (12 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28
use serialClone in serialization tests; update imports

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Tue May 24 23:43:14 2011 UTC (12 years, 11 months ago) by jsr166
Branch: MAIN
Changes since 1.27: +428 -562 lines
Diff to previous 1.27
various test improvements

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Fri May 6 11:22:07 2011 UTC (12 years, 11 months ago) by dl
Branch: MAIN
CVS Tags: release-1_7_0
Changes since 1.26: +27 -27 lines
Diff to previous 1.26
Add/use delay() instead of Thread.sleep to ensure sleeps are long enough

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Tue Mar 15 19:47:07 2011 UTC (13 years, 1 month ago) by jsr166
Branch: MAIN
Changes since 1.25: +1 -1 lines
Diff to previous 1.25
Update Creative Commons license URL in legal notices

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Sat Oct 9 19:30:35 2010 UTC (13 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.24: +4 -4 lines
Diff to previous 1.24
whitespace

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Wed Aug 25 00:07:03 2010 UTC (13 years, 8 months ago) by jsr166
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23
whitespace

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Tue Dec 1 06:28:44 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.22: +7 -7 lines
Diff to previous 1.22
cosmetic improvements

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Tue Dec 1 06:03:49 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21
Use MILLISECONDS.toNanos instead of multiplying by 1000*1000; use explicit assertEquals instead of assertTrue(...!= null); improve testPutWithTake

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Sat Nov 21 17:38:05 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.20: +1 -2 lines
Diff to previous 1.20
improve exception handling

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Sat Nov 21 02:07:27 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.19: +46 -46 lines
Diff to previous 1.19
untabify

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Tue Nov 17 02:22:50 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.18: +419 -569 lines
Diff to previous 1.18
use infrastructure to reduce boilerplate; do more careful testing

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Mon Nov 16 05:58:01 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.17: +13 -13 lines
Diff to previous 1.17
whitespace

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Mon Nov 16 05:30:08 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.16: +41 -41 lines
Diff to previous 1.16
whitespace

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Mon Nov 16 04:57:10 2009 UTC (14 years, 5 months ago) by jsr166
Branch: MAIN
Changes since 1.15: +41 -41 lines
Diff to previous 1.15
whitespace

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Mon Nov 2 20:28:32 2009 UTC (14 years, 6 months ago) by jsr166
Branch: MAIN
Changes since 1.14: +16 -16 lines
Diff to previous 1.14
whitespace

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Sat Jan 10 01:41:59 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_PFD
Changes since 1.13: +14 -0 lines
Diff to previous 1.13
Test toString

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Fri Jan 9 14:45:58 2004 UTC (20 years, 3 months ago) by dl
Branch: MAIN
Changes since 1.12: +17 -0 lines
Diff to previous 1.12
Added tests

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Sun Jan 4 22:58:03 2004 UTC (20 years, 4 months ago) by dl
Branch: MAIN
Changes since 1.11: +31 -0 lines
Diff to previous 1.11
Better fairness test

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Sun Jan 4 00:57:21 2004 UTC (20 years, 4 months ago) by dl
Branch: MAIN
Changes since 1.10: +17 -7 lines
Diff to previous 1.10
added a few tests

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Fri Jan 2 00:38:47 2004 UTC (20 years, 4 months ago) by dl
Branch: MAIN
Changes since 1.9: +9 -7 lines
Diff to previous 1.9
Replace bad test

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Mon Dec 29 19:05:40 2003 UTC (20 years, 4 months ago) by dl
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8
spellcheck

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Sun Dec 28 21:56:18 2003 UTC (20 years, 4 months ago) by dl
Branch: MAIN
Changes since 1.7: +29 -0 lines
Diff to previous 1.7
Add tests for AQS extensions; adjust others for protected condition methods

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sat Dec 27 19:26:43 2003 UTC (20 years, 4 months ago) by dl
Branch: MAIN
Changes since 1.6: +5 -4 lines
Diff to previous 1.6
Headers reference Creative Commons

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Mon Nov 3 13:50:07 2003 UTC (20 years, 6 months ago) by dl
Branch: MAIN
CVS Tags: JSR166_DEC9_POST_ES_SUBMIT, JSR166_DEC9_PRE_ES_SUBMIT, JSR166_NOV3_FREEZE
Changes since 1.5: +553 -13 lines
Diff to previous 1.5
Merged FairSemaphore into Semaphore

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Thu Sep 25 11:02:41 2003 UTC (20 years, 7 months ago) by dl
Branch: MAIN
Changes since 1.4: +62 -34 lines
Diff to previous 1.4
improve tck javadocs; rename and add a few tests

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Sat Sep 20 18:20:08 2003 UTC (20 years, 7 months ago) by dl
Branch: MAIN
Changes since 1.3: +67 -37 lines
Diff to previous 1.3
Documentation scaffolding

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Sun Sep 14 20:42:40 2003 UTC (20 years, 7 months ago) by dl
Branch: MAIN
Changes since 1.2: +7 -13 lines
Diff to previous 1.2
New base class JSR166TestCase

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Sun Sep 7 20:39:11 2003 UTC (20 years, 7 months ago) by dl
Branch: MAIN
Changes since 1.1: +25 -0 lines
Diff to previous 1.1
Added serialization and lock tests

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sun Aug 31 19:24:55 2003 UTC (20 years, 8 months ago) by dl
Branch: MAIN
First check-in of tests to be in tck

Convenience Links

Links to HEAD: (view) (download) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a