Fix compilation of sourcekit unit tests after VFS changes

This commit is contained in:
Ben Langmuir
2019-06-20 15:12:35 -07:00
committed by Marc Rasi
parent cf4206a790
commit f6e7978779
2 changed files with 3 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ public:
auto Args = CArgs.hasValue() ? makeArgs(DocName, *CArgs)
: std::vector<const char *>{};
auto Buf = MemoryBuffer::getMemBufferCopy(Text, DocName);
getLang().editorOpen(DocName, Buf.get(), Consumer, Args);
getLang().editorOpen(DocName, Buf.get(), Consumer, Args, llvm::vfs::getRealFileSystem());
}
void replaceText(StringRef DocName, unsigned Offset, unsigned Length,
@@ -148,6 +148,7 @@ public:
TestCursorInfo TestInfo;
getLang().getCursorInfo(DocName, Offset, 0, false, false, Args,
llvm::vfs::getRealFileSystem(),
[&](const RequestResult<CursorInfoData> &Result) {
assert(!Result.isCancelled());
if (Result.isError()) {