llvm-project/lldb/test/API/lang/c
Raphael Isemann 3d9a9fa691 [lldb] Remove a wrong assert in TestStructTypes that checks that empty structs in C always have size 0
D105471 fixes the way we assign sizes to empty structs in C mode. Instead of
just giving them a size 0, we instead use the size we get from DWARF if possible.

After landing D105471 the TestStructTypes test started failing on Windows. The
tests checked that the size of an empty C struct is 0 while the size LLDB now
reports is 4 bytes. It turns out that 4 bytes are the actual size Clang is using
for C structs with the MicrosoftRecordLayoutBuilder. The commit that introduced
that behaviour is 00a061dccc.

This patch removes that specific check from TestStructTypes. Note that D105471
added a series of tests that already cover this case (and the added checks
automatically adjust to whatever size the target compiler chooses for empty
structs).
2021-07-22 16:56:50 +02:00
..
anonymous [lldb/DataFormatters] Display null C++ pointers as nullptr 2020-11-12 15:24:06 -08:00
array_types [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
bitfields [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
blocks [LLDB] Remove uneeded CopyType from BlockPointerSyntheticFrontEnd 2021-02-09 16:11:28 -08:00
complex [lldb] Disable complex tests on Windows 2020-06-19 18:40:08 +02:00
complex_int [lldb] Disable complex tests on Windows 2020-06-19 18:40:08 +02:00
conflicting-symbol [lldb] [test] Un-XFAIL a test that no longer fail on FreeBSD 2021-02-23 14:35:34 +01:00
const_variables [lldb] [test] Update test status for NetBSD 2020-12-20 11:32:43 +01:00
cpp_keyword_identifiers [lldb] Skip TestCppKeywordsAsCIdentifiers on Windows 2020-11-16 18:41:04 +01:00
enum_types [lldb] Fix typos. NFC. 2021-05-31 06:48:57 +07:00
find_struct_type
forward [lldb] Require Clang 8 for gpubnames test 2021-06-16 14:07:03 +02:00
function_types [lldb] [test] Update test status for NetBSD 2020-12-20 11:32:43 +01:00
global_variables [lldb] [test] Update test status for NetBSD 2020-12-20 11:32:43 +01:00
inlines
local_types
local_variables [lldb] Make TestLocalVariables.py compatible with the new pass manager 2021-02-04 11:27:08 +01:00
modules [lldb] Enable FreeBSDRemote plugin by default and update test status 2020-11-05 17:49:46 +01:00
offsetof
record_decl_in_expr [lldb] Fix a crash when the ASTImporter is giving us two Imported callbacks for the same target decl 2020-09-09 10:31:39 +02:00
recurse
register_variables [lldb/Test] Add a trace method to replace print statements. 2020-05-25 11:11:46 -07:00
set_values [lldb] Remove license headers from all test source files 2020-02-20 08:32:01 +01:00
shared_lib [lldb] [test] Update test status for NetBSD 2020-12-20 11:32:43 +01:00
shared_lib_stripped_symbols [lldb] Replace unittest2.expectedFailure with expectedFailure (NFC) 2020-08-17 10:05:49 -07:00
sizeof [lldb] Generalize empty record size computation to avoid giving empty C++ structs a size of 0 2021-07-22 13:30:48 +02:00
step-target [lldb] [test] Rename '.categories' to 'categories' 2020-11-10 12:02:38 +01:00
step_over_no_deadlock
stepping [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
strings [lldb] Remove license headers from all test source files 2020-02-20 08:32:01 +01:00
struct_types [lldb] Remove a wrong assert in TestStructTypes that checks that empty structs in C always have size 0 2021-07-22 16:56:50 +02:00
tls_globals [lldb] Remove license headers from all test source files 2020-02-20 08:32:01 +01:00
typedef [lldb] [test] Remove duplicate xfail for Testtypedef 2020-12-07 11:22:06 +01:00
unicode
unions [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
vla [lldb] Use assertIn/NotIn over assertTrue/False (NFC) 2021-02-06 11:52:01 -08:00