|
258 | 258 | * A bare "return;" statement may be used to return early.
|
259 | 259 | */
|
260 | 260 | #define FIXTURE_SETUP(fixture_name) \
|
261 |
| - void fixture_name##_setup( \ |
| 261 | + static void fixture_name##_setup( \ |
262 | 262 | struct __test_metadata __attribute__((unused)) *_metadata, \
|
263 | 263 | FIXTURE_DATA(fixture_name) __attribute__((unused)) *self, \
|
264 | 264 | const FIXTURE_VARIANT(fixture_name) \
|
|
307 | 307 | __FIXTURE_TEARDOWN(fixture_name)
|
308 | 308 |
|
309 | 309 | #define __FIXTURE_TEARDOWN(fixture_name) \
|
310 |
| - void fixture_name##_teardown( \ |
| 310 | + static void fixture_name##_teardown( \ |
311 | 311 | struct __test_metadata __attribute__((unused)) *_metadata, \
|
312 | 312 | FIXTURE_DATA(fixture_name) __attribute__((unused)) *self, \
|
313 | 313 | const FIXTURE_VARIANT(fixture_name) \
|
@@ -987,7 +987,7 @@ static void __timeout_handler(int sig, siginfo_t *info, void *ucontext)
|
987 | 987 | kill(-(t->pid), SIGKILL);
|
988 | 988 | }
|
989 | 989 |
|
990 |
| -void __wait_for_test(struct __test_metadata *t) |
| 990 | +static void __wait_for_test(struct __test_metadata *t) |
991 | 991 | {
|
992 | 992 | struct sigaction action = {
|
993 | 993 | .sa_sigaction = __timeout_handler,
|
@@ -1205,9 +1205,9 @@ static bool test_enabled(int argc, char **argv,
|
1205 | 1205 | return !has_positive;
|
1206 | 1206 | }
|
1207 | 1207 |
|
1208 |
| -void __run_test(struct __fixture_metadata *f, |
1209 |
| - struct __fixture_variant_metadata *variant, |
1210 |
| - struct __test_metadata *t) |
| 1208 | +static void __run_test(struct __fixture_metadata *f, |
| 1209 | + struct __fixture_variant_metadata *variant, |
| 1210 | + struct __test_metadata *t) |
1211 | 1211 | {
|
1212 | 1212 | struct __test_xfail *xfail;
|
1213 | 1213 | char test_name[1024];
|
|
0 commit comments