Work in progress for:
rdar://problem/10577182
Audit lldb API impl for places where we need to perform a NULL check
Add NULL checks for SBStream APIs.
llvm-svn: 146934
diff --git a/lldb/test/source-manager/TestSourceManager.py b/lldb/test/source-manager/TestSourceManager.py
index f1a4cf2..210798a 100644
--- a/lldb/test/source-manager/TestSourceManager.py
+++ b/lldb/test/source-manager/TestSourceManager.py
@@ -74,7 +74,11 @@
# 6 }
self.expect(stream.GetData(), "Source code displayed correctly",
exe=False,
- patterns = ['=> %d.*Hello world' % self.line])
+ patterns = ['=> %d.*Hello world' % self.line])
+
+ # Boundary condition testings for SBStream(). LLDB should not crash!
+ stream.Printf(None)
+ stream.RedirectToFile(None, True)
def move_and_then_display_source(self):
"""Test that target.source-map settings work by moving main.c to hidden/main.c."""