RegressionTests__SemaphoreTest.st
author Claus Gittinger <cg@exept.de>
Thu, 28 Mar 2019 12:21:47 +0100
changeset 2195 864930fc306d
parent 2051 62ebd7e42570
permissions -rw-r--r--
#QUALITY by cg class: RegressionTests::QDoubleTests changed: #test99_misc #test_01_instance_creation #test_02_addition #test_03_subtract #test_04_relops #test_05_multiply #test_06_exp #test_06b_log10 #test_07_reading #test_08_conversion

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