Skip to content

Commit ac3f6ca

Browse files
committed
fbc-tests: disable some tests causing bugs on arm targets
1 parent efda81b commit ac3f6ca

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

tests/cpp/call2-fbc.bas

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,18 @@
88

99
#if ENABLE_CHECK_BUGS
1010
#define DOTEST
11+
#define DOFUNCS
1112
#else
1213
'' thiscall is not supported in -gen gas
1314
#if __FB_BACKEND__ <> "gas"
1415
#define DOTEST
1516
#endif
17+
18+
'' strutures returned by value from c++
19+
'' needs some work on arm targets (bugs!)
20+
#if not defined( __FB_ARM__ )
21+
#define DOFUNCS
22+
#endif
1623
#endif
1724

1825
'' !!! TODO !!! this default should be handled in fbc
@@ -121,8 +128,11 @@ end extern
121128
scope
122129
#if count = 1
123130
dim a as UDT, r as UDT
131+
print "A"
124132
r = n( a )
133+
print "B"
125134
assert( @a = getPtr1() )
135+
print "C"
126136
#elseif count = 2
127137
dim a as UDT, b as UDT, r as UDT
128138
r = n( a, b )
@@ -141,46 +151,59 @@ end extern
141151

142152
#ifdef DOTEST
143153

154+
144155
chksub( 1, sub1_c_default )
145156
chksub( 1, sub1_c_cdecl )
146157
chksub( 1, sub1_c_stdcall )
158+
#ifdef DOFUNCS
147159
chkfunc( 1, func1_c_default )
148160
chkfunc( 1, func1_c_cdecl )
149161
chkfunc( 1, func1_c_stdcall )
162+
#endif
150163

151164
chksub( 1, sub1_cpp_default )
152165
chksub( 1, sub1_cpp_cdecl )
153166
chksub( 1, sub1_cpp_stdcall )
167+
#ifdef DOFUNCS
154168
chkfunc( 1, func1_cpp_default )
155169
chkfunc( 1, func1_cpp_cdecl )
156170
chkfunc( 1, func1_cpp_stdcall )
171+
#endif
157172

158173
chksub( 2, sub2_c_default )
159174
chksub( 2, sub2_c_cdecl )
160175
chksub( 2, sub2_c_stdcall )
176+
#ifdef DOFUNCS
161177
chkfunc( 2, func2_c_default )
162178
chkfunc( 2, func2_c_cdecl )
163179
chkfunc( 2, func2_c_stdcall )
180+
#endif
164181

165182
chksub( 2, sub2_cpp_default )
166183
chksub( 2, sub2_cpp_cdecl )
167184
chksub( 2, sub2_cpp_stdcall )
185+
#ifdef DOFUNCS
168186
chkfunc( 2, func2_cpp_default )
169187
chkfunc( 2, func2_cpp_cdecl )
170188
chkfunc( 2, func2_cpp_stdcall )
189+
#endif
171190

172191
chksub( 3, sub3_c_default )
173192
chksub( 3, sub3_c_cdecl )
174193
chksub( 3, sub3_c_stdcall )
194+
#ifdef DOFUNCS
175195
chkfunc( 3, func3_c_default )
176196
chkfunc( 3, func3_c_cdecl )
177197
chkfunc( 3, func3_c_stdcall )
198+
#endif
178199

179200
chksub( 3, sub3_cpp_default )
180201
chksub( 3, sub3_cpp_cdecl )
181202
chksub( 3, sub3_cpp_stdcall )
203+
#ifdef DOFUNCS
182204
chkfunc( 3, func3_cpp_default )
183205
chkfunc( 3, func3_cpp_cdecl )
184206
chkfunc( 3, func3_cpp_stdcall )
207+
#endif
185208

186209
#endif

tests/cpp/class-fbc.bas

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@
77

88
#if ENABLE_CHECK_BUGS
99
#define DOTEST
10+
#define DOFUNCS
1011
#else
1112
'' thiscall is not supported in -gen gas
1213
#if __FB_BACKEND__ <> "gas"
1314
#define DOTEST
1415
#endif
16+
17+
'' structures returned by value from c++
18+
'' needs some work on arm targets (bugs!)
19+
#if not defined( __FB_ARM__ )
20+
#define DOFUNCS
21+
#endif
1522
#endif
1623

1724
'' !!! TODO !!! this default should be handled in fbc
@@ -154,6 +161,7 @@ scope
154161
end scope
155162
'/
156163

164+
#ifdef DOFUNCS
157165
DLOG( operator +( byref lhs as const UDT, byref rhs as const UDT ) as UDT )
158166
scope
159167
dim as UDT a = 3
@@ -193,5 +201,6 @@ scope
193201
c = a - b
194202
checkResults( @a, @b, 17, 5, 12, "UDT operator-( int const& lhs, UDT const& rhs )" )
195203
end scope
204+
#endif
196205

197206
#endif '' DOTEST

0 commit comments

Comments
 (0)