test: add bounds check for nfs test #4176
Closed
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.
The nfs test builds a list of entries for all mount points on the
system, and then checks each mount point for expected results
against the opal_path_nfs() call. This test assumed that there
were less than 256 mount points on the system, which apparently
isn't true on some Cray systems. This patch makes two changes:
add the proper bound check to avoid a segmentation fault and
double the list of mount points we'll return.
Signed-off-by: Brian Barrett [email protected]