Commit Graph

10 Commits

Author SHA1 Message Date
Hamish Knight
bbb04aaa20 [test] Disable bridging PCH in a few tests
The new driver builds a PCH by default, which the
old driver didn't do. These tests don't expect a
PCH, so avoid building it.
2024-09-22 21:15:45 +01:00
Adrian Prantl
543a2cd685 Fix caching bug in MemoryBufferSerializedModuleLoader
By populating the memory cache before loading the module, we can avoid a cycle
where a module is imported that is an overlay, which then triggers
ClangImporter, which then (redundantly) triggers the import of the overlay
module, which would reimport the module again, since it's import is still
underway and it hasn't been entered into the cache yet.

rdar://118846313
2024-02-15 14:06:28 -08:00
Adrian Prantl
10004edf49 Leave skeleton CU breadcrumbs fo imported Clang modules in the debug info.
This allows the debugger to look up Clang-imported type definitions in
the correct module.
2019-01-08 16:57:14 -08:00
Davide Italiano
23d551e655 [lldb-moduleimport-test] Refactor the whole tool.
This is in preparation for fetching informations directly from
the module instead of specifying them on the cmdline. It will
serve us better as it will mimick more accurately the way lldb
is behaving.

This refactoring moves the validation of the modules earlier
so that we can use the validation info to create the CompileUnit.

<rdar://problem/38867076>
2018-03-30 18:04:02 -07:00
Davide Italiano
9ccdbc1cfa [lldb-moduleimport-test] Introduce a --verbose flag.
<rdar://problem/38323564>
2018-03-15 14:49:48 -07:00
Dmitri Gribenko
486cab447d tests: replace 'rm -rf %t && mkdir -p %t' with '%empty-directory(%t)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00
Dmitri Gribenko
55864d10cb Tests: use 'mkdir -p' 2016-09-02 21:36:45 -07:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Brian Gesiak
326e01b51c [tests][ast] Obj-C related tests require Obj-C
`ASTSection_ObjC` tests may be run on any number of operating systems,
not just Linux. No matter the OS, these tests rely on Objective-C being available.
Check for that instead of the OS.
2016-01-20 22:50:31 -05:00
Adrian Prantl
e5cbfce181 Factor out the ObjC-specific tests of ASTSection.swift into a separate
file so they can have separate requirements.

Swift SVN r31590
2015-08-31 23:30:52 +00:00