You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bump MAX_FILES and gracefully handle filename exhaustion in all open rules
Increase MAX_FILES from 100 to 500 in PosixFileTests.cpp to give the
filename pool more headroom. The pool caps at MAX_FILES+1 entries because
get_filename picks in [0, MAX_FILES]; once FILES.size() exceeds that,
only cached filenames are returned and new generation stops.
Also change the uniqueness loop in OpenBaseRule, OpenFileCreateBounded,
and OpenFileCreateString to gracefully skip the iteration (return) instead
of failing with ASSERT_LT when a unique filename cannot be found. This
prevents test explosions if the pool is ever exhausted again.
Co-Authored-By: michael.d.starch <michael.d.starch@jpl.nasa.gov>
0 commit comments