This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/master by this push:
     new 2c925e9  PROTON-2153: Make fuzz-url work on Windows again.
2c925e9 is described below

commit 2c925e9243240bbb1def79b1f5c744b77fd37bb1
Author: Andrew Stitcher <[email protected]>
AuthorDate: Tue Dec 10 13:19:40 2019 -0500

    PROTON-2153: Make fuzz-url work on Windows again.
---
 c/tests/fuzz/CMakeLists.txt | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/c/tests/fuzz/CMakeLists.txt b/c/tests/fuzz/CMakeLists.txt
index e0e7094..a43ad19 100644
--- a/c/tests/fuzz/CMakeLists.txt
+++ b/c/tests/fuzz/CMakeLists.txt
@@ -58,7 +58,17 @@ pn_add_fuzz_test (fuzz-message-decode fuzz-message-decode.c)
 target_link_libraries (fuzz-message-decode qpid-proton-core)
 
 # pn_url_parse is not in proton core and is only used by messenger so compile 
specially
-pn_add_fuzz_test (fuzz-url fuzz-url.c ${PN_C_SOURCE_DIR}/extra/url.c  
${PN_C_SOURCE_DIR}/core/object/object.c ${PN_C_SOURCE_DIR}/core/object/string.c 
${PN_C_SOURCE_DIR}/core/util.c ${PN_C_SOURCE_DIR}/core/memory.c)
+set(platform_MSVC ${PN_C_SOURCE_DIR}/compiler/msvc/snprintf.c)
+set(platform ${extra_${CMAKE_C_COMPILER_ID}})
+
+pn_add_fuzz_test (fuzz-url
+  fuzz-url.c
+  ${PN_C_SOURCE_DIR}/extra/url.c
+  ${PN_C_SOURCE_DIR}/core/object/object.c
+  ${PN_C_SOURCE_DIR}/core/object/string.c
+  ${PN_C_SOURCE_DIR}/core/util.c
+  ${PN_C_SOURCE_DIR}/core/memory.c
+  ${platform})
 target_compile_definitions(fuzz-url PRIVATE PROTON_DECLARE_STATIC)
 
 # This regression test can take a very long time so don't run by default


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to