Skip to content

Commit

Permalink
Disable complex datatype use in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Nov 15, 2024
1 parent 04c3b5f commit 6327797
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions test/test_rest_vol.c
Original file line number Diff line number Diff line change
Expand Up @@ -18740,6 +18740,39 @@ generate_random_datatype(H5T_class_t parent_class)
break;
}

case_complex:
/* Complex datatypes are unsupported, try again */
switch (rand() % H5T_NCLASSES) {
case H5T_INTEGER:
goto case_integer;
case H5T_FLOAT:
goto case_float;
case H5T_TIME:
goto case_time;
case H5T_STRING:
goto case_string;
case H5T_BITFIELD:
goto case_bitfield;
case H5T_OPAQUE:
goto case_opaque;
case H5T_COMPOUND:
goto case_compound;
case H5T_REFERENCE:
goto case_reference;
case H5T_ENUM:
goto case_enum;
case H5T_VLEN:
goto case_vlen;
case H5T_ARRAY:
goto case_array;
default:
H5_FAILED();
printf(" invalid value for goto\n");
break;

break;
}

default:
H5_FAILED();
printf(" invalid datatype class\n");
Expand Down

0 comments on commit 6327797

Please sign in to comment.