diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-08-28 09:55:24 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-08-28 17:33:20 -0400 |
commit | d1febdd40faf2f66a901c42377a6b6efaad1449c (patch) | |
tree | 8dfb2e35de0f7064753ff923491b5914a8046018 /tests | |
parent | 4890e2754c238c51497a19b67fb2458ef108f558 (diff) | |
download | bfs-d1febdd40faf2f66a901c42377a6b6efaad1449c.tar.xz |
prelude: Split bfs-specific utilities into new bfs.h header
Diffstat (limited to 'tests')
-rw-r--r-- | tests/alloc.c | 2 | ||||
-rw-r--r-- | tests/bfstd.c | 2 | ||||
-rw-r--r-- | tests/bit.c | 5 | ||||
-rw-r--r-- | tests/ioq.c | 4 | ||||
-rw-r--r-- | tests/list.c | 4 | ||||
-rw-r--r-- | tests/main.c | 2 | ||||
-rw-r--r-- | tests/mksock.c | 1 | ||||
-rw-r--r-- | tests/sighook.c | 4 | ||||
-rw-r--r-- | tests/tests.h | 1 | ||||
-rw-r--r-- | tests/trie.c | 5 | ||||
-rw-r--r-- | tests/xspawn.c | 2 | ||||
-rw-r--r-- | tests/xtime.c | 7 | ||||
-rw-r--r-- | tests/xtouch.c | 2 |
13 files changed, 34 insertions, 7 deletions
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 <errno.h> #include <stdlib.h> #include <stdint.h> 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 <errno.h> #include <langinfo.h> #include <stdlib.h> 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 <limits.h> #include <stdint.h> #include <string.h> 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 <errno.h> #include <fcntl.h> #include <stdlib.h> 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 <locale.h> #include <stdio.h> #include <stdlib.h> 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 <errno.h> #include <stdio.h> #include <stdlib.h> 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 <errno.h> #include <pthread.h> #include <signal.h> 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 <stdlib.h> #include <string.h> 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 <stdlib.h> #include <string.h> #include <sys/wait.h> 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 <errno.h> #include <limits.h> #include <stdint.h> 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 <errno.h> #include <fcntl.h> #include <stdio.h> |