RegressionTests__SemaphoreTest.st
author Jan Vrany <jan.vrany@labware.com>
Wed, 24 Nov 2021 11:34:33 +0000
branchjv
changeset 2605 06d49352dc54
parent 1567 e17701a073f9
permissions -rwxr-xr-x
Update `MakefileTests` to work with both in-tree and out-of-tree builds

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

"{ NameSpace: RegressionTests }"

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


!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$'
! !