llvm-project/lldb/test/types
Greg Clayton 3bcdfc0ec1 <rdar://problem/12798131>
Cleaned up the option parsing code to always pass around the short options as integers. Previously we cast this down to "char" and lost some information. I recently added an assert that would detect duplicate short character options which was firing during the test suite.

This fix does the following:
- make sure all short options are treated as "int"
- make sure that short options can be non-printable values when a short option is not required or when an option group is mixed into many commands and a short option is not desired
- fix the help printing to "do the right thing" in all cases. Previously if there were duplicate short character options, it would just not emit help for the duplicates
- fix option parsing when there are duplicates to parse options correctly. Previously the option parsing, when done for an OptionGroup, would just start parsing options incorrectly by omitting table entries and it would end up setting the wrong option value

llvm-svn: 169189
2012-12-04 00:32:51 +00:00
..
AbstractBase.py <rdar://problem/12798131> 2012-12-04 00:32:51 +00:00
HideTestFailures.py Modify the test cases (there are a bunch of them) under test/types so that they 2011-06-22 21:15:10 +00:00
Makefile Mark these test methods to be eligible for running only under the 'darwin' platform. 2010-10-21 21:58:02 +00:00
TestFloatTypes.py Clear auto-confirm setting on teardown for tests that use it 2012-11-20 19:46:54 +00:00
TestFloatTypesExpr.py Clear auto-confirm setting on teardown for tests that use it 2012-11-20 19:46:54 +00:00
TestIntegerTypes.py Clear auto-confirm setting on teardown for tests that use it 2012-11-20 19:46:54 +00:00
TestIntegerTypesExpr.py Clear auto-confirm setting on teardown for tests that use it 2012-11-20 19:46:54 +00:00
basic_type.cpp Add comment for build_and_run_with_source_atoms_expr() and remove redundant #include from basic_type.cpp. 2012-01-10 23:36:06 +00:00
char.cpp Added 'char'/'unsigned char'/'short'/'unsigned short' to the test suite. 2010-09-24 22:54:18 +00:00
double.cpp Added "float" and "double" to types/TestBasicTypes.py. Abstracted the generic 2010-09-27 23:29:54 +00:00
float.cpp Added "float" and "double" to types/TestBasicTypes.py. Abstracted the generic 2010-09-27 23:29:54 +00:00
int.cpp Added a generic_type_tester() to the TestBasicTypes class to be used for 2010-09-23 23:35:28 +00:00
long.cpp Added two new .cpp files to be tested via TestBasicTypes.py for correct display 2010-09-24 20:41:17 +00:00
long_long.cpp Added "long long" and "unsigned long long" to the TestBasicTypes.py. 2010-09-27 20:44:46 +00:00
short.cpp Added 'char'/'unsigned char'/'short'/'unsigned short' to the test suite. 2010-09-24 22:54:18 +00:00
unsigned_char.cpp Added 'char'/'unsigned char'/'short'/'unsigned short' to the test suite. 2010-09-24 22:54:18 +00:00
unsigned_int.cpp Added two new .cpp files to be tested via TestBasicTypes.py for correct display 2010-09-24 20:41:17 +00:00
unsigned_long.cpp Added "long long" and "unsigned long long" to the TestBasicTypes.py. 2010-09-27 20:44:46 +00:00
unsigned_long_long.cpp Added "long long" and "unsigned long long" to the TestBasicTypes.py. 2010-09-27 20:44:46 +00:00
unsigned_short.cpp Added 'char'/'unsigned char'/'short'/'unsigned short' to the test suite. 2010-09-24 22:54:18 +00:00