tests: clear missions when clearing avatar #71213
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
None
Purpose of change
EOC_FACTION_SUCCESSION_IMMEDIATE
that made it not trigger properlyThese two together lead to a segfault when tests are ran in a particular order. See this and this.
Describe the solution
has_var()
check toEOC_FACTION_SUCCESSION_IMMEDIATE
Describe alternatives you've considered
N/A
Testing
./cata_test Wield_time_test,widget_value_strings,text_widgets,number_widgets_with_color,graph_widgets,graph_widgets_with_color,widgets_showing_avatar_stats_with_color_for_normal_value,widget_showing_character_fatigue_status,widgets_showing_avatar_health_with_color_for_normal_value,widgets_showing_body_temperature_and_delta,widgets_showing_avatar_stamina,widgets_showing_avatar_weight,widgets_showing_avatar_attributes,widgets_showing_activity_level,widgets_showing_move_counter_and_mode,thirst_and_hunger_widgets,widgets_showing_movement_cost,widgets_showing_Sun_and_Moon_position,widget_showing_body_part_status_text,compact_bodypart_status_widgets_+_legend,outer_armor_widget,radiation_badge_widget,moon_and_lighting_widgets,compass_widget,layout_widgets_in_columns,widgets_showing_weather_conditions,multi-line_overmap_text_widget,Custom_widget_height_and_multiline_formatting,Dynamic_height_for_multiline_widgets,Widget_alignment
doesn't crash
Windows and LTO jobs must succeed for this one.
Additional context
ASan log for the crash, since the builds from CI are not cooperating
EOC_FACTION_SUCCESSION_IMMEDIATE
had a bad condition before becausevar_name
intime_since_var
was silently excluded from shimming so that condition was basically interpreted astime_now < time_between_succession
. @RenechCDDA can you please double check that EOC chain.