[Lldb-commits] [PATCH] D68856: convert SBDebugger::***FileHandle() wrappers to native files.

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 11 01:18:18 PDT 2019


labath added inline comments.


================
Comment at: lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py:827-835
+        self.assertRaises(TypeError, self.debugger.SetOutputFile, None)
+        self.assertRaises(TypeError, self.debugger.SetOutputFile, "ham sandwich")
+        self.assertRaises(TypeError, self.debugger.SetOutputFileHandle, "ham sandwich")
+        self.assertRaises(TypeError, self.debugger.SetInputFile, None)
+        self.assertRaises(TypeError, self.debugger.SetInputFile, "ham sandwich")
+        self.assertRaises(TypeError, self.debugger.SetInputFileHandle, "ham sandwich")
+        self.assertRaises(TypeError, self.debugger.SetErrorFile, None)
----------------
I think these will fail with swig<=3. See my r374322. I personally don't think you need these checks for _every_ api taking accepting a file object, but if you do want to have them, you'll need to account for the differences in swig versions somehow.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68856/new/

https://reviews.llvm.org/D68856





More information about the lldb-commits mailing list