With D21896, unrecognized flags might be reported within a wrong test case. For example:
[ RUN ] SanitizerCommon.IntFlags [ OK ] SanitizerCommon.IntFlags (9 ms) [ RUN ] SanitizerCommon.StrFlags WARNING: found 2 unrecognized flag(s): --flag_name zzzzzzz [ OK ] SanitizerCommon.StrFlags (0 ms)
Actually, these two flags are created in SanitizerCommon.IntFlags.
The patch fixes that so that the warnings are issued within the right test case:
[ RUN ] SanitizerCommon.IntFlags WARNING: found 1 unrecognized flag(s): --flag_name WARNING: found 1 unrecognized flag(s): zzzzzzz [ OK ] SanitizerCommon.IntFlags (6 ms) [ RUN ] SanitizerCommon.StrFlags [ OK ] SanitizerCommon.StrFlags (0 ms)