aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test_harness.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test_harness.h b/src/test_harness.h
index 3fd118a..00a7bee 100644
--- a/src/test_harness.h
+++ b/src/test_harness.h
@@ -204,7 +204,7 @@
#define _TEST(test_name) \
static void test_name(struct __test_metadata *_metadata); \
static struct __test_metadata _##test_name##_object = \
- { name: "global." #test_name, fn: &test_name }; \
+ { .name = "global." #test_name, .fn = &test_name }; \
static void __attribute__((constructor)) _register_##test_name(void) { \
__register_test(&_##test_name##_object); \
} \
@@ -254,8 +254,8 @@
fixture_name##_teardown(_metadata, &self); \
} \
static struct __test_metadata _##fixture_name##_##test_name##_object = { \
- name: #fixture_name "." #test_name, \
- fn: &wrapper_##fixture_name##_##test_name, \
+ .name = #fixture_name "." #test_name, \
+ .fn = &wrapper_##fixture_name##_##test_name, \
}; \
static void __attribute__((constructor)) \
_register_##fixture_name##_##test_name(void) { \