From 1f950594810a2ab7e3cc1532d3ec039cbad9490f Mon Sep 17 00:00:00 2001 From: heck Date: Wed, 27 Jan 2021 22:02:22 +0100 Subject: [PATCH] lib_test - PSIa technically valid, but nonsense (struct containing incomplete array) --- examples/lib/lib_test/structs.h | 8 +++----- tests/test_pEpACIDgen.py | 10 ---------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/examples/lib/lib_test/structs.h b/examples/lib/lib_test/structs.h index 27068a9..76fed66 100644 --- a/examples/lib/lib_test/structs.h +++ b/examples/lib/lib_test/structs.h @@ -76,14 +76,12 @@ extern "C" { // Struct containing array fields // ------------------------------ // Caution: The array combinations are covered in a not entirely systematic way. -// There are designated primitive structs that contain complete/incomplete array fields. +// There are designated primitive structs that contain complete array fields. // BUT, the use of array fields has been scattered a bit randomly in an attempt to cover the most important // combinations of struct fields: -// - ia_P // - a_P // - a_PSa // - aAPSa -// - iaACS // - aACS // // So, a few of the possible field types are missing. @@ -147,14 +145,14 @@ typedef struct CS { // _CCS = complex complex struct without an alias struct _CCS { struct _CS field__CS_1; - ACS field_ACS_1[]; + ACS field_ACS_1[3]; }; // CCS = complex complex struct // ACCS = alias of a complex complex struct typedef struct CCS { struct _CS field__CS_1; - ACS field_ACS_1[]; + ACS field_ACS_1[3]; } ACCS; // Nested structs diff --git a/tests/test_pEpACIDgen.py b/tests/test_pEpACIDgen.py index 662c9a1..243fbe5 100755 --- a/tests/test_pEpACIDgen.py +++ b/tests/test_pEpACIDgen.py @@ -49,16 +49,6 @@ all_types.append({"type": ["PS"], "struct PS" ]}) -all_types.append({"type": ["_PSIa"], - "requires": [ - "struct _PSIa" - ]}) - -all_types.append({"type": ["PSIa"], - "requires": [ - "struct PSIa" - ]}) - all_types.append({"type": ["_PSa"], "requires": [ "struct _PSa"