Mercurial > hg > orthanc
changeset 6471:f5cbafc741dd
fix compatibility with webassembly
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Thu, 20 Nov 2025 13:08:09 +0100 |
| parents | 21644e11f52b |
| children | 4d8248653a14 360953cb921b 6ab61244cdd3 |
| files | OrthancFramework/UnitTestsSources/RestApiTests.cpp |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <ctype.h> #include <boost/lexical_cast.hpp> @@ -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
