RegressionTests__SemaphoreTest.st
author Stefan Vogel <sv@exept.de>
Tue, 11 Jun 2019 10:34:41 +0200
changeset 2321 32ea6329f5ad
parent 2051 62ebd7e42570
permissions -rw-r--r--
class: stx_goodies_regression class changed: #classNamesAndAttributes make classes autoloaded that stc cannot compile (yet)

"{ Package: 'stx:goodies/regression' }"

"{ NameSpace: RegressionTests }"

TestCase subclass:#SemaphoreTest
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'tests-Regression-Processes'
!


!SemaphoreTest methodsFor:'tests'!

testSpeed01
    |s t|

    s := Semaphore forMutualExclusion.
    t := Time millisecondsToRun:[
       1000000 timesRepeat:[ s critical:[1+1] ]
    ].
    Transcript showCR:t

    "
     self run:#testSpeed01
    "
! !

!SemaphoreTest class methodsFor:'documentation'!

version
    ^ '$Header$'
! !