Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b30e87ac authored by William Escande's avatar William Escande
Browse files

Mock static initialization order 20

cpp static order initialization is not guarantee.
In order to avoid the mess, we need to have a lazy init schema.
Replacing all mock incrementation and getter in system/stack/test
```
's|mock_function_count_map\[__func__\]++|inc_func_call_count(__func__)|'
's|mock_function_count_map.count(\("[A-Za-z_]*"\))|get_func_call_count(\1)|'
```

Bug: 265217208
Test: atest --host
Change-Id: Ic6ac8ad96dcbbed8bc43ab9ebfb28cc7953ce72a
parent e46a9fe5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment