# HG changeset patch # User Sebastien Jodogne # Date 1763640489 -3600 # Node ID f5cbafc741dddd35a22d1dc9b8d09495bbbb29fe # Parent 21644e11f52b8764392beeecd28f83b50c2c9927 fix compatibility with webassembly diff -r 21644e11f52b -r f5cbafc741dd OrthancFramework/UnitTestsSources/RestApiTests.cpp --- a/OrthancFramework/UnitTestsSources/RestApiTests.cpp Thu Nov 20 12:41:04 2025 +0100 +++ b/OrthancFramework/UnitTestsSources/RestApiTests.cpp Thu Nov 20 13:08:09 2025 +0100 @@ -38,7 +38,6 @@ #include "../Sources/OrthancException.h" #include "../Sources/RestApi/RestApiHierarchy.h" #include "../Sources/WebServiceParameters.h" -#include "../Sources/MetricsRegistry.h" #include #include @@ -1388,6 +1387,7 @@ #endif +#if ORTHANC_SANDBOXED != 1 TEST(HttpServer, GetRelativePathToRoot) { ASSERT_THROW(HttpServer::GetRelativePathToRoot(""), OrthancException); @@ -1397,3 +1397,4 @@ ASSERT_EQ("./../../", HttpServer::GetRelativePathToRoot("/a/b/system")); ASSERT_EQ("../../../", HttpServer::GetRelativePathToRoot("/a/b/system/")); } +#endif