--- a/RegressionTests__JITTest.st Wed Oct 18 14:53:34 2017 +0200
+++ b/RegressionTests__JITTest.st Wed Oct 18 14:53:59 2017 +0200
@@ -453,21 +453,19 @@
!JITTest methodsFor:'public - test - logical'!
testNot
- |compiledMethod|
-
self assert: (self tstSendNotTo: true) == false.
self assert: (self tstSendNotTo: false) == true.
self assert: (self tstSendNotTo: self) == #'not properly handled'.
- compiledMethod := self class compiledMethodAt:#'testNot'.
- (compiledMethod notNil
- and:[compiledMethod byteCode isNil]) ifTrue:[
- "/ stc-compiled code handles not slightly differently
- "/ (does not raise an error)
- 'JITTest >> testNot: non-boolean cases skipped due to stc limitations' infoPrintCR.
- ] ifFalse:[
- self should: [ self tstSendNotTo: 1 ] raise: MessageNotUnderstood.
- ].
+ (Helper
+ isStcCompiledMethod:#'testNot'
+ in:self) ifTrue:[
+ "/ stc-compiled code handles not slightly differently
+ "/ (does not raise an error)
+ 'JITTest >> testNot: non-boolean cases skipped due to stc limitations' infoPrintCR.
+ ] ifFalse:[
+ self should: [ self tstSendNotTo: 1 ] raise: MessageNotUnderstood.
+ ].