RegressionTests__JITTest.st
changeset 1880 2698f399234f
parent 1829 6f6726b4e8c0
child 1902 dba6552c3871
--- 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.
+        ].