Added initial unit test for LLDB's Stream class.
authorRaphael Isemann <teemperor@gmail.com>
Wed, 1 Aug 2018 06:04:48 +0000 (06:04 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 1 Aug 2018 06:04:48 +0000 (06:04 +0000)
commitb1dfad060193bb0274fff39e1cba5d5ffa807dd2
treeb503c1d42f8b0e3c849031aa69c7092e3aa4de03
parent64e0c56717628333554be781d70d5fe45d5b9b0b
Added initial unit test for LLDB's Stream class.

Summary:
This adds an initial small unit test for LLDB's Stream class, which should at least cover
most of the functions in the Stream class. StreamString is always in big endian
mode, so that's the only stream byte order path this test covers as of now. Also,
the binary mode still needs to be tested for all print methods.

Also adds some FIXMEs for wrong/strange result values of the Stream class that we hit
while testing those functions.

Reviewers: labath

Reviewed By: labath

Subscribers: probinson, labath, mgorny, lldb-commits

Differential Revision: https://reviews.llvm.org/D50027

llvm-svn: 338488
lldb/unittests/Utility/CMakeLists.txt
lldb/unittests/Utility/StreamTest.cpp [new file with mode: 0644]