author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 05 Jan 2017 23:36:28 +0000 | |
branch | jv |
changeset 1567 | e17701a073f9 |
parent 1447 | 2351db93aa5b |
permissions | -rw-r--r-- |
1447 | 1 |
"{ Package: 'stx:goodies/regression' }" |
223 | 2 |
|
3 |
"{ NameSpace: RegressionTests }" |
|
4 |
||
5 |
TestCase subclass:#SemaphoreTest |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'tests-Regression' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!SemaphoreTest methodsFor:'tests'! |
|
14 |
||
15 |
testSpeed01 |
|
16 |
|s t| |
|
17 |
||
18 |
s := Semaphore forMutualExclusion. |
|
19 |
t := Time millisecondsToRun:[ |
|
20 |
1000000 timesRepeat:[ s critical:[1+1] ] |
|
21 |
]. |
|
22 |
Transcript showCR:t |
|
23 |
||
24 |
" |
|
25 |
self run:#testSpeed01 |
|
26 |
" |
|
27 |
! ! |
|
28 |
||
29 |
!SemaphoreTest class methodsFor:'documentation'! |
|
30 |
||
31 |
version |
|
32 |
^ '$Header$' |
|
33 |
! ! |
|
1567
e17701a073f9
Added abstract VMSpawningTestCase
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1447
diff
changeset
|
34 |