hanchenye-llvm-project/lldb/source/Host
Zachary Turner df734cdd39 Fix tests broken by the OptionValidator changes.
The getopt library has a structure called option (lowercase).  We
have a structure called Option (uppercase).  previously the two
structures had exactly the same definitions, and we were doing a
C-style cast of an Option* to an option*.  C-style casts don't
bother to warn you when you cast to unrelated types, but in the
original OptionValidator patch I modified the definition of Option.

This patch fixes the errors by building an array of option
structures and filling it out the correct way before passing it to
the getopt library.

This also fixes one other source of test failures: an uninitialized
read that occurs due to not initializing a field of the
OptionDefinition.

Reviewed By: Todd Fiala

Differential Revision: http://reviews.llvm.org/D4425

llvm-svn: 212628
2014-07-09 16:32:07 +00:00
..
common Fix tests broken by the OptionValidator changes. 2014-07-09 16:32:07 +00:00
freebsd Implement Host::GetThreadName for FreeBSD 2014-05-21 18:09:55 +00:00
linux Fix typos. 2014-07-01 21:22:11 +00:00
macosx __arm64__ and __aarch64__ #ifdef adjustments 2014-07-09 01:29:05 +00:00
windows Implment "platform process list" for Windows. 2014-07-08 04:52:15 +00:00
CMakeLists.txt
Makefile