Skip to content

Commit b45ed88

Browse files
committed
cleanup tests
fix templated spawn fns fixup lints try to suppress test warnings from criterion test string_views expand use of type_traits in tests
1 parent 8401cb3 commit b45ed88

File tree

4 files changed

+261
-386
lines changed

4 files changed

+261
-386
lines changed

test/.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Checks: '*,-altera-*,-fuchsia-*,-llvmlibc-*-namespace,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-llvmlibc-restrict-system-libc-headers,-portability-restrict-system-includes,-cppcoreguidelines-pro-type-cstyle-cast,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-avoid-magic-numbers,-hicpp-vararg,-readability-magic-numbers,-concurrency-mt-unsafe,-hicpp-no-array-decay,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-avoid-do-while,-cppcoreguidelines-avoid-non-const-global-variables,-misc-use-anonymous-namespace,-misc-const-correctness,-readability-identifier-length,-cppcoreguidelines-pro-type-member-init,-readability-function-cognitive-complexity,-cert-err58-cpp,-hicpp-member-init-readability-simplify-boolean-expr,-modernize-use-trailing-return-type'
1+
Checks: '*,-altera-*,-boost-use-*,-fuchsia-*,-llvmlibc-*,-cert-err58-cpp,-cppcoreguidelines-avoid-do-while,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-no-malloc,-cppcoreguidelines-owning-memory,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-pro-type-cstyle-cast,-cppcoreguidelines-pro-type-member-init,-cppcoreguidelines-pro-type-vararg,-google-build-using-namespace,-hicpp-member-init,-hicpp-no-malloc,-hicpp-vararg,-misc-use-anonymous-namespace,-misc-use-internal-linkage,-modernize-type-traits,-modernize-use-ranges,-modernize-use-trailing-return-type,-readability-function-cognitive-complexity,-readability-identifier-length,-readability-isolate-declaration'
22
HeaderFilterRegex: 'lib_unit_tests.hpp'

test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ lib_unit_tests: $(BIN_DIR)/lib_unit_tests
3636

3737
#unit test library
3838
$(BIN_DIR)/lib_unit_tests: CPPFLAGS := -MMD -MP -fvisibility=hidden
39-
$(BIN_DIR)/lib_unit_tests: CXXFLAGS += -fblocks $(shell pkg-config --cflags getargv criterion) -O0 -g3 -fcoverage-mapping $(SANI_FLAGS)
39+
$(BIN_DIR)/lib_unit_tests: CXXFLAGS += -fblocks $(shell pkg-config --cflags getargv) $(shell pkg-config --cflags criterion | sed 's/-I/-isystem /g') -O0 -g3 -fcoverage-mapping $(SANI_FLAGS) -Wno-unused-value
4040
$(BIN_DIR)/lib_unit_tests: EXE := $(BIN_DIR)/lib_unit_tests
4141
$(BIN_DIR)/lib_unit_tests: LDLIBS := $(SANI_FLAGS)
4242
$(BIN_DIR)/lib_unit_tests: LDFLAGS := $(shell pkg-config --libs getargv criterion)

0 commit comments

Comments
 (0)