Skip to content

Commit f7748af

Browse files
committed
Improved test dependency scoping
1 parent ed8030e commit f7748af

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

fio-stl.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4339,6 +4339,11 @@ FIO_MAP Ordering & Naming Shortcut
43394339
#define FIO_HTTP_HANDLE
43404340
#endif
43414341

4342+
#if (defined(DEBUG) && defined(FIO_HTTP_HANDLE))
4343+
#undef FIO_IO
4344+
#define FIO_IO
4345+
#endif
4346+
43424347
#if defined(FIO_HTTP)
43434348
#undef FIO_PUBSUB
43444349
#define FIO_PUBSUB

fio-stl/000 dependencies.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,11 @@ FIO_MAP Ordering & Naming Shortcut
278278
#define FIO_HTTP_HANDLE
279279
#endif
280280

281+
#if (defined(DEBUG) && defined(FIO_HTTP_HANDLE))
282+
#undef FIO_IO
283+
#define FIO_IO
284+
#endif
285+
281286
#if defined(FIO_HTTP)
282287
#undef FIO_PUBSUB
283288
#define FIO_PUBSUB

tests/test-helpers.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef H___TEST_HELPERS___H
22
#define H___TEST_HELPERS___H
33

4-
#define FIO_TEST_ALL
54
#define FIO_CORE
65
#include "../fio-stl/include.h"
76

tests/z-dynamic-types.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* *****************************************************************************
22
Test
33
***************************************************************************** */
4+
#define FIO_TEST_ALL
45
#include "test-helpers.h"
56

67
/* *****************************************************************************

0 commit comments

Comments
 (0)