Skip to content

Commit 963462c

Browse files
committed
fix(test): add glob for new error tests
1 parent cb0a142 commit 963462c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

regression-tests/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@ function(cppfront_tests)
235235
RELATIVE "${REGRESSION_TESTS_DIR}"
236236
CONFIGURE_DEPENDS "${REGRESSION_TESTS_DIR}/${ARG_GROUP}-*.cpp2"
237237
)
238+
# Trigger regeneration to recognize as a test to fail codegen.
239+
file(
240+
GLOB unused
241+
CONFIGURE_DEPENDS "${REGRESSION_TESTS_DIR}/${ARG_GROUP}-*-error.cpp2"
242+
)
238243

239244
foreach (src IN LISTS sources)
240245
cmake_path(REPLACE_EXTENSION src "cpp" OUTPUT_VARIABLE expected_file)

0 commit comments

Comments
 (0)