diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/headers/meson.build | 1 | ||||
-rw-r--r-- | test/meson.build | 3 | ||||
-rw-r--r-- | test/test_forge_overflow.c | 8 |
3 files changed, 8 insertions, 4 deletions
diff --git a/test/headers/meson.build b/test/headers/meson.build index b1ec805..89ee4b8 100644 --- a/test/headers/meson.build +++ b/test/headers/meson.build @@ -63,6 +63,7 @@ test( files('test_headers.c'), c_args: header_c_suppressions, dependencies: [lv2_dep], + implicit_include_directories: false, ), suite: 'unit', ) diff --git a/test/meson.build b/test/meson.build index 2fec667..cddb05a 100644 --- a/test/meson.build +++ b/test/meson.build @@ -74,6 +74,7 @@ test( files('test_build.c'), c_args: c_suppressions, dependencies: [lv2_dep], + implicit_include_directories: false, ), suite: 'build', ) @@ -87,6 +88,7 @@ if is_variable('cpp') files('cpp/test_build.cpp'), cpp_args: cpp_suppressions, dependencies: [lv2_dep], + implicit_include_directories: false, ), suite: 'build', ) @@ -171,6 +173,7 @@ foreach test_name : test_names files('test_@0@.c'.format(test_name)), c_args: c_suppressions + atom_test_suppressions, dependencies: [lv2_dep], + implicit_include_directories: false, ), suite: 'unit', ) diff --git a/test/test_forge_overflow.c b/test/test_forge_overflow.c index 8f6ee03..7e97ae4 100644 --- a/test/test_forge_overflow.c +++ b/test/test_forge_overflow.c @@ -90,7 +90,7 @@ test_literal_overflow(void) static int test_sequence_overflow(void) { - static const size_t size = sizeof(LV2_Atom_Sequence) + 6 * sizeof(LV2_Atom); + static const size_t size = sizeof(LV2_Atom_Sequence) + (6 * sizeof(LV2_Atom)); LV2_URID_Map map = {NULL, urid_map}; // Test over a range that fails in the sequence header and event components @@ -121,7 +121,7 @@ test_sequence_overflow(void) static int test_vector_head_overflow(void) { - static const size_t size = sizeof(LV2_Atom_Vector) + 3 * sizeof(LV2_Atom); + static const size_t size = sizeof(LV2_Atom_Vector) + (3 * sizeof(LV2_Atom)); LV2_URID_Map map = {NULL, urid_map}; // Test over a range that fails in the vector header and elements @@ -154,7 +154,7 @@ test_vector_head_overflow(void) static int test_vector_overflow(void) { - static const size_t size = sizeof(LV2_Atom_Vector) + 3 * sizeof(LV2_Atom); + static const size_t size = sizeof(LV2_Atom_Vector) + (3 * sizeof(LV2_Atom)); static const int32_t vec[] = {1, 2, 3}; LV2_URID_Map map = {NULL, urid_map}; @@ -181,7 +181,7 @@ test_vector_overflow(void) static int test_tuple_overflow(void) { - static const size_t size = sizeof(LV2_Atom_Tuple) + 3 * sizeof(LV2_Atom); + static const size_t size = sizeof(LV2_Atom_Tuple) + (3 * sizeof(LV2_Atom)); LV2_URID_Map map = {NULL, urid_map}; // Test over a range that fails in the tuple header and elements |