author | Jan Vrany <jan.vrany@labware.com> |
Thu, 25 Aug 2022 11:29:18 +0100 | |
branch | jv |
changeset 2607 | ddf2eb8b3f1d |
parent 1567 | e17701a073f9 |
permissions | -rwxr-xr-x |
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 |