@@ -155,23 +155,31 @@ def test_gcc_version_check(_run_cmd):
155
155
toolchain = TOOLCHAIN_CLASSES ["GCC_ARM" ](
156
156
TARGET_MAP ["K64F" ], notify = notifier )
157
157
toolchain .version_check ()
158
- assert notifier .messages == []
158
+ assert len ( notifier .messages ) == 1
159
159
_run_cmd .return_value = ("""
160
- arm-none-eabi-gcc (Arch Repository) 8.1.0
161
- Copyright (C) 2018 Free Software Foundation, Inc.
160
+ arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
161
+ Copyright (C) 2019 Free Software Foundation, Inc.
162
162
This is free software; see the source for copying conditions. There is NO
163
163
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
164
164
""" , "" , 0 )
165
165
toolchain .version_check ()
166
166
assert len (notifier .messages ) == 1
167
167
_run_cmd .return_value = ("""
168
+ arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 10-2020-q4-major) 10.2.1 20201025 (release) [ARM/arm-10-branch revision 377599]
169
+ Copyright (C) 2020 Free Software Foundation, Inc.
170
+ This is free software; see the source for copying conditions. There is NO
171
+ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
172
+ """ , "" , 0 )
173
+ toolchain .version_check ()
174
+ assert len (notifier .messages ) == 2
175
+ _run_cmd .return_value = ("""
168
176
arm-none-eabi-gcc (Arch Repository)
169
177
Copyright (C) 2018 Free Software Foundation, Inc.
170
178
This is free software; see the source for copying conditions. There is NO
171
179
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
172
180
""" , "" , 0 )
173
181
toolchain .version_check ()
174
- assert len (notifier .messages ) == 2
182
+ assert len (notifier .messages ) == 3
175
183
176
184
177
185
@given (fixed_dictionaries ({
0 commit comments