@@ -129,6 +129,16 @@ function(create_libc_unittest fq_target_name)
129
129
list (APPEND fq_deps_list libc.src.__support.StringUtil.error_to_string
130
130
libc.test.UnitTest.ErrnoSetterMatcher )
131
131
list (REMOVE_DUPLICATES fq_deps_list )
132
+
133
+ if (SHOW_INTERMEDIATE_OBJECTS )
134
+ message (STATUS "Adding unit test ${fq_target_name} " )
135
+ if (${SHOW_INTERMEDIATE_OBJECTS} STREQUAL "DEPS" )
136
+ foreach (dep IN LISTS LIBC_UNITTEST_DEPENDS )
137
+ message (STATUS " ${fq_target_name} depends on ${dep} " )
138
+ endforeach ()
139
+ endif ()
140
+ endif ()
141
+
132
142
get_object_files_for_test (
133
143
link_object_files skipped_entrypoints_list ${fq_deps_list} )
134
144
if (skipped_entrypoints_list )
@@ -157,15 +167,6 @@ function(create_libc_unittest fq_target_name)
157
167
return ()
158
168
endif ()
159
169
160
- if (SHOW_INTERMEDIATE_OBJECTS )
161
- message (STATUS "Adding unit test ${fq_target_name} " )
162
- if (${SHOW_INTERMEDIATE_OBJECTS} STREQUAL "DEPS" )
163
- foreach (dep IN LISTS ADD_OBJECT_DEPENDS )
164
- message (STATUS " ${fq_target_name} depends on ${dep} " )
165
- endforeach ()
166
- endif ()
167
- endif ()
168
-
169
170
if (LIBC_UNITTEST_NO_RUN_POSTBUILD )
170
171
set (fq_build_target_name ${fq_target_name} )
171
172
else ()
@@ -521,7 +522,7 @@ function(add_integration_test test_name)
521
522
link_object_files skipped_entrypoints_list ${fq_deps_list} )
522
523
if (skipped_entrypoints_list )
523
524
if (LIBC_CMAKE_VERBOSE_LOGGING )
524
- set (msg "Skipping unittest ${fq_target_name} as it has missing deps: "
525
+ set (msg "Skipping integration test ${fq_target_name} as it has missing deps: "
525
526
"${skipped_entrypoints_list} ." )
526
527
message (STATUS ${msg} )
527
528
endif ()
@@ -704,7 +705,7 @@ function(add_libc_hermetic_test test_name)
704
705
get_object_files_for_test (
705
706
link_object_files skipped_entrypoints_list ${fq_deps_list} )
706
707
if (skipped_entrypoints_list )
707
- set (msg "Skipping unittest ${fq_target_name} as it has missing deps: "
708
+ set (msg "Skipping hermetic test ${fq_target_name} as it has missing deps: "
708
709
"${skipped_entrypoints_list} ." )
709
710
message (STATUS ${msg} )
710
711
return ()
0 commit comments