fix lldb test on lib64 systems
authorLuboš Luňák <l.lunak@centrum.cz>
Sun, 2 Aug 2020 15:44:24 +0000 (17:44 +0200)
committerLuboš Luňák <l.lunak@centrum.cz>
Mon, 3 Aug 2020 09:19:07 +0000 (11:19 +0200)
Differential revision: https://reviews.llvm.org/D85096

lldb/unittests/Expression/ClangParserTest.cpp

index 81f9ed839fcc1852d7270bf03ae6277d1590b02b..4df557475314e45405c71a9d0bb3f930170e03c2 100644 (file)
@@ -11,6 +11,7 @@
 #include "Plugins/ExpressionParser/Clang/ClangHost.h"
 #include "TestingSupport/SubsystemRAII.h"
 #include "TestingSupport/TestUtilities.h"
+#include "lldb/Host/Config.h"
 #include "lldb/Host/FileSystem.h"
 #include "lldb/Host/HostInfo.h"
 #include "lldb/Utility/FileSpec.h"
@@ -36,7 +37,7 @@ static std::string ComputeClangResourceDir(std::string lldb_shlib_path,
 TEST_F(ClangHostTest, ComputeClangResourceDirectory) {
 #if !defined(_WIN32)
   std::string path_to_liblldb = "/foo/bar/lib/";
-  std::string path_to_clang_dir = "/foo/bar/lib/clang/" CLANG_VERSION_STRING;
+  std::string path_to_clang_dir = "/foo/bar/lib" LLDB_LIBDIR_SUFFIX "/clang/" CLANG_VERSION_STRING;
 #else
   std::string path_to_liblldb = "C:\\foo\\bar\\lib";
   std::string path_to_clang_dir = "C:\\foo\\bar\\lib\\clang\\" CLANG_VERSION_STRING;