[squeak-dev] FFI: FFI-Tests-eem.72.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Mar 12 02:02:06 UTC 2023
Eliot Miranda uploaded a new version of FFI-Tests to project FFI:
http://source.squeak.org/FFI/FFI-Tests-eem.72.mcz
==================== Summary ====================
Name: FFI-Tests-eem.72
Author: eem
Time: 11 March 2023, 6:02:05.143806 pm
UUID: f648c603-4287-4f11-a6c8-32cd6d357cdf
Ancestors: FFI-Tests-eem.71
Oops; the check shoudl really check the SqueakFFIPrims verison number, not the VM's.
=============== Diff against FFI-Tests-eem.71 ===============
Item was changed:
----- Method: FFIPluginTests>>arm64Check (in category 'support') -----
arm64Check
"If required, mark the current test as failure to avoid segmentation fault
due to issues in older versions of the plugin code."
+
+ | ffiVersion |
-
(FFIPlatformDescription current isARM
and: [FFIPlatformDescription current wordSize = 8
+ and: [ffiVersion := Integer readFrom: (self pluginName subsequences: $.) last.
+ ffiVersion < 3309]]) ifTrue:
- and: [Smalltalk vmVMMakerVersion < 3309]]) ifTrue:
[self fail: 'Not supported. Segmentation fault avoided.']!
Item was added:
+ ----- Method: FFIPluginTests>>pluginName (in category 'support') -----
+ pluginName
+ "Answer the version string of the SqueakFFIPrims plugin."
+ 1 to: SmallInteger maxVal do:
+ [:i|
+ (Smalltalk listLoadedModule: i)
+ ifNil: [^self error: 'cannot find FFI plugin']
+ ifNotNil:
+ [:moduleName|
+ (moduleName beginsWith: 'SqueakFFIPrims') ifTrue:
+ [^moduleName]]].
+ "NOTREACHED"!
More information about the Squeak-dev
mailing list
|