Test init reservation failure
This commit is contained in:
@@ -88,7 +88,10 @@ typedef struct
|
||||
|
||||
static akerr_StatusName akerr_status_names[AKERR_STATUS_NAME_SLOTS];
|
||||
static int akerr_status_name_count;
|
||||
static akerr_StatusRange akerr_status_ranges[AKERR_MAX_RESERVED_STATUS_RANGES];
|
||||
/* C has no portable zero-length arrays. Keep one unused physical slot when a
|
||||
* test build sets the logical capacity to zero to drive init's fatal path. */
|
||||
static akerr_StatusRange akerr_status_ranges[
|
||||
AKERR_MAX_RESERVED_STATUS_RANGES > 0 ? AKERR_MAX_RESERVED_STATUS_RANGES : 1];
|
||||
static int akerr_status_range_count;
|
||||
|
||||
akerr_ErrorContext AKERR_ARRAY_ERROR[AKERR_MAX_ARRAY_ERROR];
|
||||
|
||||
Reference in New Issue
Block a user