
Summary: At present, several gtests in the lldb open source codebase are using #include statements rooted at $(SOURCE_ROOT)/${LLDB_PROJECT_ROOT}. This patch cleans up this directory/include structure for both CMake and Xcode build systems. rdar://problem/33835795 Reviewers: zturner, jingham, beanz Reviewed By: beanz Subscribers: emaste, lldb-commits, mgorny Differential Revision: https://reviews.llvm.org/D36598 llvm-svn: 314849
23 lines
772 B
C++
23 lines
772 B
C++
//===- TestUtilities.cpp ----------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "TestUtilities.h"
|
|
#include "llvm/ADT/SmallString.h"
|
|
#include "llvm/Support/FileSystem.h"
|
|
#include "llvm/Support/Path.h"
|
|
|
|
extern const char *TestMainArgv0;
|
|
|
|
std::string lldb_private::GetInputFilePath(const llvm::Twine &name) {
|
|
llvm::SmallString<128> result = llvm::sys::path::parent_path(TestMainArgv0);
|
|
llvm::sys::fs::make_absolute(result);
|
|
llvm::sys::path::append(result, "Inputs", name);
|
|
return result.str();
|
|
}
|