forked from OSchip/llvm-project
Fix lldb-server unit tests for the MonitoringProcessLauncher refactor
We now need to initialize the filesystem in these tests. llvm-svn: 348261
This commit is contained in:
parent
f73b782105
commit
3fbdde3172
lldb/unittests/tools/lldb-server/tests
|
@ -11,6 +11,7 @@
|
||||||
#define LLDB_SERVER_TESTS_TESTBASE_H
|
#define LLDB_SERVER_TESTS_TESTBASE_H
|
||||||
|
|
||||||
#include "TestClient.h"
|
#include "TestClient.h"
|
||||||
|
#include "lldb/Host/FileSystem.h"
|
||||||
#include "lldb/Host/HostInfo.h"
|
#include "lldb/Host/HostInfo.h"
|
||||||
#include "llvm/Support/Path.h"
|
#include "llvm/Support/Path.h"
|
||||||
#include "llvm/Testing/Support/Error.h"
|
#include "llvm/Testing/Support/Error.h"
|
||||||
|
@ -20,7 +21,10 @@ namespace llgs_tests {
|
||||||
|
|
||||||
class TestBase: public ::testing::Test {
|
class TestBase: public ::testing::Test {
|
||||||
public:
|
public:
|
||||||
static void SetUpTestCase() { lldb_private::HostInfo::Initialize(); }
|
static void SetUpTestCase() {
|
||||||
|
lldb_private::FileSystem::Initialize();
|
||||||
|
lldb_private::HostInfo::Initialize();
|
||||||
|
}
|
||||||
|
|
||||||
static std::string getInferiorPath(llvm::StringRef Name) {
|
static std::string getInferiorPath(llvm::StringRef Name) {
|
||||||
llvm::SmallString<64> Path(LLDB_TEST_INFERIOR_PATH);
|
llvm::SmallString<64> Path(LLDB_TEST_INFERIOR_PATH);
|
||||||
|
|
Loading…
Reference in New Issue