summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2019-01-22 21:49:56 +0000
committerRui Ueyama <ruiu@google.com>2019-01-22 21:49:56 +0000
commit21d451caa065f5ff2807cb692fdc1d7de6fc0bb5 (patch)
treee6093346904ec357c35c3d66d37958de53f18662 /lldb/packages/Python/lldbsuite/test/python_api
parent30989e492b8e32ec5f558777b8988ccea8ce5155 (diff)
downloadbcm5719-llvm-21d451caa065f5ff2807cb692fdc1d7de6fc0bb5.tar.gz
bcm5719-llvm-21d451caa065f5ff2807cb692fdc1d7de6fc0bb5.zip
FileOutputBuffer: handle mmap(2) failure
If the underlying filesystem does not support mmap system call, FileOutputBuffer may fail when it attempts to mmap an output temporary file. This patch handles such situation. Unfortunately, it looks like it is very hard to test this functionality without a filesystem that doesn't support mmap using llvm-lit. I tested this locally by passing an invalid parameter to mmap so that it fails and falls back to the in-memory buffer. Maybe that's all what we can do. I believe it is reasonable to submit this without a test. Differential Revision: https://reviews.llvm.org/D56949 llvm-svn: 351883
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud