From d1febdd40faf2f66a901c42377a6b6efaad1449c Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 28 Aug 2024 09:55:24 -0400 Subject: prelude: Split bfs-specific utilities into new bfs.h header --- tests/alloc.c | 2 ++ tests/bfstd.c | 2 ++ tests/bit.c | 5 ++++- tests/ioq.c | 4 +++- tests/list.c | 4 +++- tests/main.c | 2 ++ tests/mksock.c | 1 + tests/sighook.c | 4 +++- tests/tests.h | 1 + tests/trie.c | 5 ++++- tests/xspawn.c | 2 ++ tests/xtime.c | 7 +++++-- tests/xtouch.c | 2 ++ 13 files changed, 34 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/alloc.c b/tests/alloc.c index 2d3077d..ec8e8f7 100644 --- a/tests/alloc.c +++ b/tests/alloc.c @@ -3,8 +3,10 @@ #include "prelude.h" #include "tests.h" + #include "alloc.h" #include "diag.h" + #include #include #include diff --git a/tests/bfstd.c b/tests/bfstd.c index e59ac34..068e371 100644 --- a/tests/bfstd.c +++ b/tests/bfstd.c @@ -3,8 +3,10 @@ #include "prelude.h" #include "tests.h" + #include "bfstd.h" #include "diag.h" + #include #include #include diff --git a/tests/bit.c b/tests/bit.c index 125f274..854398c 100644 --- a/tests/bit.c +++ b/tests/bit.c @@ -2,9 +2,12 @@ // SPDX-License-Identifier: 0BSD #include "prelude.h" -#include "tests.h" + +#include "bfs.h" #include "bit.h" #include "diag.h" +#include "tests.h" + #include #include #include diff --git a/tests/ioq.c b/tests/ioq.c index 4e1209e..61a924f 100644 --- a/tests/ioq.c +++ b/tests/ioq.c @@ -3,10 +3,12 @@ #include "prelude.h" #include "tests.h" -#include "ioq.h" + #include "bfstd.h" #include "diag.h" #include "dir.h" +#include "ioq.h" + #include #include #include diff --git a/tests/list.c b/tests/list.c index 822077e..820fbe4 100644 --- a/tests/list.c +++ b/tests/list.c @@ -2,8 +2,10 @@ // SPDX-License-Identifier: 0BSD #include "prelude.h" -#include "tests.h" + +#include "bfs.h" #include "list.h" +#include "tests.h" struct item { int n; diff --git a/tests/main.c b/tests/main.c index e4d9e61..9cbdcfb 100644 --- a/tests/main.c +++ b/tests/main.c @@ -7,8 +7,10 @@ #include "prelude.h" #include "tests.h" + #include "bfstd.h" #include "color.h" + #include #include #include diff --git a/tests/mksock.c b/tests/mksock.c index 5786cb6..f46df96 100644 --- a/tests/mksock.c +++ b/tests/mksock.c @@ -7,6 +7,7 @@ */ #include "bfstd.h" + #include #include #include diff --git a/tests/sighook.c b/tests/sighook.c index f1c4c27..adc53d8 100644 --- a/tests/sighook.c +++ b/tests/sighook.c @@ -3,9 +3,11 @@ #include "prelude.h" #include "tests.h" -#include "sighook.h" + #include "atomic.h" #include "thread.h" +#include "sighook.h" + #include #include #include diff --git a/tests/tests.h b/tests/tests.h index 01d6096..2c1eb3a 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -9,6 +9,7 @@ #define BFS_TESTS_H #include "prelude.h" + #include "bfstd.h" #include "diag.h" diff --git a/tests/trie.c b/tests/trie.c index f380613..41b729e 100644 --- a/tests/trie.c +++ b/tests/trie.c @@ -2,9 +2,12 @@ // SPDX-License-Identifier: 0BSD #include "prelude.h" + +#include "bfs.h" +#include "diag.h" #include "tests.h" #include "trie.h" -#include "diag.h" + #include #include diff --git a/tests/xspawn.c b/tests/xspawn.c index d77a078..20617de 100644 --- a/tests/xspawn.c +++ b/tests/xspawn.c @@ -3,10 +3,12 @@ #include "prelude.h" #include "tests.h" + #include "alloc.h" #include "bfstd.h" #include "dstring.h" #include "xspawn.h" + #include #include #include diff --git a/tests/xtime.c b/tests/xtime.c index ea9e372..6d7716d 100644 --- a/tests/xtime.c +++ b/tests/xtime.c @@ -2,10 +2,13 @@ // SPDX-License-Identifier: 0BSD #include "prelude.h" -#include "tests.h" -#include "xtime.h" + +#include "bfs.h" #include "bfstd.h" #include "diag.h" +#include "tests.h" +#include "xtime.h" + #include #include #include diff --git a/tests/xtouch.c b/tests/xtouch.c index 8660ea5..705d4e2 100644 --- a/tests/xtouch.c +++ b/tests/xtouch.c @@ -2,9 +2,11 @@ // SPDX-License-Identifier: 0BSD #include "prelude.h" + #include "bfstd.h" #include "sanity.h" #include "xtime.h" + #include #include #include -- cgit v1.2.3