diff options
author | Lawrence D'Anna <lawrence_danna@apple.com> | 2019-10-17 01:35:22 +0000 |
---|---|---|
committer | Lawrence D'Anna <lawrence_danna@apple.com> | 2019-10-17 01:35:22 +0000 |
commit | 0f783599a4c645d8ae826f990f7b938fac6e5dae (patch) | |
tree | 9792f137ff09b6b8b90cbcf3d75dd8a98999ea25 /lldb/unittests/ScriptInterpreter | |
parent | 56ee31964f5a57621953eacdc8458bd41dfc4154 (diff) | |
download | bcm5719-llvm-0f783599a4c645d8ae826f990f7b938fac6e5dae.tar.gz bcm5719-llvm-0f783599a4c645d8ae826f990f7b938fac6e5dae.zip |
delete SWIG typemaps for FILE*
Summary:
The SWIG typemaps for FILE* are no longer used, so
this patch deletes them.
Reviewers: JDevlieghere, jasonmolenda, labath
Reviewed By: labath
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D68963
llvm-svn: 375073
Diffstat (limited to 'lldb/unittests/ScriptInterpreter')
-rw-r--r-- | lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp b/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp index e6d1c4d14b0..5c3c6097007 100644 --- a/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp +++ b/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp @@ -585,8 +585,9 @@ TEST_F(PythonDataObjectsTest, TestPythonFile) { auto file = FileSystem::Instance().Open(FileSpec(FileSystem::DEV_NULL), File::eOpenOptionRead); ASSERT_THAT_EXPECTED(file, llvm::Succeeded()); - PythonFile py_file(*file.get(), "r"); - EXPECT_TRUE(PythonFile::Check(py_file.get())); + auto py_file = PythonFile::FromFile(*file.get(), "r"); + ASSERT_THAT_EXPECTED(py_file, llvm::Succeeded()); + EXPECT_TRUE(PythonFile::Check(py_file.get().get())); } TEST_F(PythonDataObjectsTest, TestObjectAttributes) { |