RegressionTests__SemaphoreTest.st
author Claus Gittinger <cg@exept.de>
Sat, 08 Jun 2019 13:53:58 +0200
changeset 2284 5774f8229f2b
parent 2051 62ebd7e42570
permissions -rw-r--r--
#DOCUMENTATION by cg class: RegressionTests::QuadFloatTest class definition added: #setUp #test01b_Nan comment/format in: #test01_Nan changed: #test02_Inf #test03_Conversion #test04_Arithmetic #test05_Comparing #test06_MiscMath #test07_Truncation #test08_Representation class: RegressionTests::QuadFloatTest class added: #documentation

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