Skip to content

Commit

Permalink
scripts: Fixed case-level flags in bench.py
Browse files Browse the repository at this point in the history
A typo meant we were setting all case-level flags to suite-level flags
in bench.py. And because suite-level flags are more-or-less just ored
case-level flags, all case-level flags would end up shared.

Fixed via untypo.
  • Loading branch information
geky committed Nov 7, 2024
1 parent 007ac97 commit b08c66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def write_case_functions(f, suite, case):
f.writeln(12*' '+'.path = "%s",' % case.path)
f.writeln(12*' '+'.flags = %s,' % (
' | '.join(filter(None, [
'BENCH_INTERNAL' if suite.internal
'BENCH_INTERNAL' if case.internal
else None]))
or 0))
for ifdef in it.chain(suite.ifdef, case.ifdef):
Expand Down

0 comments on commit b08c66e

Please sign in to comment.