[squeak-dev] FFI: FFI-Tests-mt.68.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Apr 13 13:13:29 UTC 2022


Marcel Taeumel uploaded a new version of FFI-Tests to project FFI:
http://source.squeak.org/FFI/FFI-Tests-mt.68.mcz

==================== Summary ====================

Name: FFI-Tests-mt.68
Author: mt
Time: 13 April 2022, 3:13:28.851138 pm
UUID: c7768de6-5169-1b49-b6c4-c40c43238ce5
Ancestors: FFI-Tests-mt.67

Fixes #testSumStructSslf4 test by calling the correct function. Duh.

=============== Diff against FFI-Tests-mt.67 ===============

Item was changed:
  ----- Method: FFIPluginTests>>expectedFailures (in category 'failures') -----
  expectedFailures
  
  	^ #(
  		testIntAliasCall "argument-type coercing failed - handle must not be atomic but ByteArray or ExternalAddress"
  		testIntAliasCallReturnIntAlias "return-type coercing failed - check referentClass notNil missing?"
  		testIntCallReturnIntAlias "return-type coercing failed - check referentClass notNil missing?"
  		testMixedDoublesAndLongsSum "more than 15 method args needed"
- 		testSumStructSslf4 "some overflow issue, maybe expected"
  		testPrintWideString "no support for WideString arguments yet")!

Item was changed:
  ----- Method: FFIPluginTests>>testSumStructSslf4 (in category 'tests - structure') -----
  testSumStructSslf4
  	"Test passing structure short long float"
  	| sslf1 sslf2 sslf3 sslf4 sum |
  	sslf1 := FFITestSslf new.
  	sslf1 s1: -32768; l2: 16r123456789012; f3: 65536.0.
  	sslf2 := FFITestSslf new.
  	sslf2 s1: 32767; l2: (-1 << 31); f3: -65536.0.
  	sslf3 := FFITestSslf new.
  	sslf3 s1: 1; l2: 16r123456789012; f3: 123.456.	
  	sslf4 := FFITestSslf new.
  	sslf4 s1: 2; l2: (-1 << 31); f3: 456.123.	
+ 	sum := self invoke: 'ffiTestSumSslf_4' with: sslf1 with: sslf2 with: sslf3 with: sslf4.
- 	sum := self invoke: 'ffiTestSumSslf_2' with: sslf1 with: sslf2.
  	self
  		assert: sslf1 s1 + sslf1 l2 + sslf1 f3 + sslf2 s1 + sslf2 l2 + sslf2 f3
  			+ sslf3 s1 + sslf3 l2 + sslf3 f3 + sslf4 s1 + sslf4 l2 + sslf4 f3
  		equals: sum!



More information about the Squeak-dev mailing list