Skip to content

Commit a5502f1

Browse files
committed
Solve issue in CMake wasm test.
1 parent aba40df commit a5502f1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

source/tests/metacall_wasm_test/CMakeLists.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,24 @@ target_link_libraries(${target}
116116
)
117117

118118
#
119-
# Define test
119+
# Define dependencies
120120
#
121121

122-
add_test(NAME ${target}
123-
COMMAND $<TARGET_FILE:${target}>
122+
add_dependencies(${target}
123+
wasm_loader
124124
)
125125

126126
#
127-
# Define dependencies
127+
# Define test
128128
#
129129

130-
add_dependencies(${target}
131-
wasm_loader
130+
if(WIN32 AND OPTION_BUILD_ADDRESS_SANITIZER)
131+
# TODO: This test segfaults in windows when run with addres sanitizer without any output
132+
return()
133+
endif()
134+
135+
add_test(NAME ${target}
136+
COMMAND $<TARGET_FILE:${target}>
132137
)
133138

134139
#
@@ -139,11 +144,6 @@ set_property(TEST ${target}
139144
PROPERTY LABELS ${target}
140145
)
141146

142-
if(WIN32 AND OPTION_BUILD_ADDRESS_SANITIZER)
143-
# TODO: This test segfaults in windows when run with addres sanitizer without any output
144-
return()
145-
endif()
146-
147147
if(OPTION_BUILD_THREAD_SANITIZER)
148148
# TODO: This test fails when run with thread sanitizer:
149149
#

0 commit comments

Comments
 (0)