So it is next to the header file which it tests.
---
common/include/Makefile.am | 5 +++++
common/utils/Makefile.am | 8 ++------
common/{utils => include}/test-checked-overflow.c | 0
.gitignore | 1 +
4 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/common/include/Makefile.am b/common/include/Makefile.am
index 52d97216..b1da8f65 100644
--- a/common/include/Makefile.am
+++ b/common/include/Makefile.am
@@ -56,6 +56,7 @@ TESTS = \
test-ascii-ctype \
test-ascii-string \
test-byte-swapping \
+ test-checked-overflow \
test-isaligned \
test-ispowerof2 \
test-iszero \
@@ -78,6 +79,10 @@ test_byte_swapping_SOURCES = test-byte-swapping.c byte-swapping.h
test_byte_swapping_CPPFLAGS = -I$(srcdir)
test_byte_swapping_CFLAGS = $(WARNINGS_CFLAGS)
+test_checked_overflow_SOURCES = test-checked-overflow.c
+test_checked_overflow_CPPFLAGS = -I$(top_srcdir)/common/include
+test_checked_overflow_CFLAGS = $(WARNINGS_CFLAGS)
+
test_isaligned_SOURCES = test-isaligned.c isaligned.h
test_isaligned_CPPFLAGS = -I$(srcdir)
test_isaligned_CFLAGS = $(WARNINGS_CFLAGS)
diff --git a/common/utils/Makefile.am b/common/utils/Makefile.am
index 5218a699..012a5c25 100644
--- a/common/utils/Makefile.am
+++ b/common/utils/Makefile.am
@@ -94,12 +94,8 @@ windows-errors.c: windows-errors.txt
# Unit tests.
-TESTS = test-checked-overflow test-quotes test-vector
-check_PROGRAMS = test-checked-overflow test-quotes test-vector
-
-test_checked_overflow_SOURCES = test-checked-overflow.c
-test_checked_overflow_CPPFLAGS = -I$(top_srcdir)/common/include
-test_checked_overflow_CFLAGS = $(WARNINGS_CFLAGS)
+TESTS = test-quotes test-vector
+check_PROGRAMS = test-quotes test-vector
test_quotes_SOURCES = test-quotes.c quote.c utils.h
test_quotes_CPPFLAGS = -I$(srcdir)
diff --git a/common/utils/test-checked-overflow.c
b/common/include/test-checked-overflow.c
similarity index 100%
rename from common/utils/test-checked-overflow.c
rename to common/include/test-checked-overflow.c
diff --git a/.gitignore b/.gitignore
index 4e2ae75d..2d27cf06 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,6 +37,7 @@ plugins/*/*.3
/common/include/test-ascii-ctype
/common/include/test-ascii-string
/common/include/test-byte-swapping
+/common/include/test-checked-overflow
/common/include/test-isaligned
/common/include/test-ispowerof2
/common/include/test-iszero
--
2.32.0