From 84f3bd10e8f81eb096364e7141772f1d8dab6d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Fri, 4 Jul 2025 12:56:09 +0200 Subject: [PATCH 1/2] Make test app compile on windows SIGUSR1 does not exist on windows --- test/test.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/test.cpp b/test/test.cpp index 93ab8ec0..55cfbbf7 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -339,10 +339,7 @@ void ArenaAllocatorTest() int main() { -#ifdef _WIN32 - signal( SIGUSR1, SignalHandler_TriggerCrash ); - signal( SIGUSR2, SignalHandler_TriggerInstrumentationFailure ); -#else +#ifndef _WIN32 struct sigaction sigusr1, oldsigusr1,sigusr2, oldsigusr2 ; memset( &sigusr1, 0, sizeof( sigusr1 ) ); sigusr1.sa_handler = SignalHandler_TriggerCrash; From a3be5cca2c036411ad28898cc4bcd129d5dca72f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Fri, 4 Jul 2025 14:54:13 +0200 Subject: [PATCH 2/2] Set tracy-test exe as startup project --- test/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1c11b2cd..3e3a4990 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -29,3 +29,5 @@ endif() # copy image file in build folder configure_file(${CMAKE_CURRENT_LIST_DIR}/image.jpg image.jpg COPYONLY) + +set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT tracy-test)