diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-10-09 19:22:02 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-10-09 19:22:02 +0000 |
| commit | 87aa9c9e4d41ed881453e2fab85b3d25f648bb55 (patch) | |
| tree | 63efe79832bf3de4f63e4e81c62e73923947b882 /lldb/lit/Reproducer/Modules | |
| parent | fd18e94697c987d5f24e25aa4e27adaffff3cce4 (diff) | |
| download | bcm5719-llvm-87aa9c9e4d41ed881453e2fab85b3d25f648bb55.tar.gz bcm5719-llvm-87aa9c9e4d41ed881453e2fab85b3d25f648bb55.zip | |
Re-land "[test] Split LLDB tests into API, Shell & Unit"
The original patch got reverted because it broke `check-lldb` on a clean
build. This fixes that.
llvm-svn: 374201
Diffstat (limited to 'lldb/lit/Reproducer/Modules')
| -rw-r--r-- | lldb/lit/Reproducer/Modules/Inputs/Bar.h | 3 | ||||
| -rw-r--r-- | lldb/lit/Reproducer/Modules/Inputs/Foo.h | 1 | ||||
| -rw-r--r-- | lldb/lit/Reproducer/Modules/Inputs/ModuleCXX.in | 6 | ||||
| -rw-r--r-- | lldb/lit/Reproducer/Modules/Inputs/main.cpp | 9 | ||||
| -rw-r--r-- | lldb/lit/Reproducer/Modules/Inputs/module.modulemap | 7 | ||||
| -rw-r--r-- | lldb/lit/Reproducer/Modules/TestModuleCXX.test | 37 |
6 files changed, 0 insertions, 63 deletions
diff --git a/lldb/lit/Reproducer/Modules/Inputs/Bar.h b/lldb/lit/Reproducer/Modules/Inputs/Bar.h deleted file mode 100644 index d004baf3168..00000000000 --- a/lldb/lit/Reproducer/Modules/Inputs/Bar.h +++ /dev/null @@ -1,3 +0,0 @@ -struct Bar { - int success; -}; diff --git a/lldb/lit/Reproducer/Modules/Inputs/Foo.h b/lldb/lit/Reproducer/Modules/Inputs/Foo.h deleted file mode 100644 index 1fe02e89786..00000000000 --- a/lldb/lit/Reproducer/Modules/Inputs/Foo.h +++ /dev/null @@ -1 +0,0 @@ -struct Foo {}; diff --git a/lldb/lit/Reproducer/Modules/Inputs/ModuleCXX.in b/lldb/lit/Reproducer/Modules/Inputs/ModuleCXX.in deleted file mode 100644 index 0f5bb7864f2..00000000000 --- a/lldb/lit/Reproducer/Modules/Inputs/ModuleCXX.in +++ /dev/null @@ -1,6 +0,0 @@ -breakpoint set -f main.cpp -l 5 -run -expr -l Objective-C++ -- @import Foo -expr -l Objective-C++ -- @import Bar -expr -- Bar() -reproducer generate diff --git a/lldb/lit/Reproducer/Modules/Inputs/main.cpp b/lldb/lit/Reproducer/Modules/Inputs/main.cpp deleted file mode 100644 index e6a331bb405..00000000000 --- a/lldb/lit/Reproducer/Modules/Inputs/main.cpp +++ /dev/null @@ -1,9 +0,0 @@ -#include "Foo.h" - -void stop() {} - -int main(int argc, char **argv) { - Foo foo; - stop(); // break here. - return 0; -} diff --git a/lldb/lit/Reproducer/Modules/Inputs/module.modulemap b/lldb/lit/Reproducer/Modules/Inputs/module.modulemap deleted file mode 100644 index 4221d0f9134..00000000000 --- a/lldb/lit/Reproducer/Modules/Inputs/module.modulemap +++ /dev/null @@ -1,7 +0,0 @@ -module Foo { - header "Foo.h" -} - -module Bar { - header "Bar.h" -} diff --git a/lldb/lit/Reproducer/Modules/TestModuleCXX.test b/lldb/lit/Reproducer/Modules/TestModuleCXX.test deleted file mode 100644 index 843c7e6d1ff..00000000000 --- a/lldb/lit/Reproducer/Modules/TestModuleCXX.test +++ /dev/null @@ -1,37 +0,0 @@ -# REQUIRES: system-darwin - -# Start fresh. -# RUN: rm -rf %t.repro -# RUN: rm -rf %t.root -# RUN: rm -rf %t.clang-cache -# RUN: rm -rf %t.lldb-cache - -# Create a temporary root we can remove later. -# RUN: mkdir -p %t.root -# RUN: mkdir -p %t.clang-cache -# RUN: mkdir -p %t.lldb-cache -# RUN: cp %S/Inputs/main.cpp %t.root -# RUN: cp %S/Inputs/Foo.h %t.root -# RUN: cp %S/Inputs/Bar.h %t.root -# RUN: cp %S/Inputs/module.modulemap %t.root - -# Compile the test case form the temporary root. -# RUN: %clang %t.root/main.cpp -g -fmodules -fcxx-modules -fmodules-cache-path=%t.clang-cache -o %t.root/a.out - -# Capture the debug session. -# RUN: %lldb -x -b -o 'settings set symbols.clang-modules-cache-path %t.lldb-cache' -s %S/Inputs/ModuleCXX.in --capture --capture-path %t.repro %t.root/a.out | FileCheck %s --check-prefix CAPTURE -# CAPTURE: (success = 0) - -# RUN: cat %t.repro/files.yaml | FileCheck %s --check-prefix YAML -# YAML-DAG: Foo.h -# YAML-DAG: Bar.h -# YAML-DAG: module.modulemap - -# Remove the temporary root. -# RUN: rm -rf %t.root -# RUN: rm -rf %t.clang-cache -# RUN: rm -rf %t.lldb-cache - -# Replay the debug session. -# RUN: %lldb -x -b -o 'settings set symbols.clang-modules-cache-path %t.lldb-cache' -s %S/Inputs/ModuleCXX.in --replay %t.repro %t.root/a.out | FileCheck %s --check-prefix REPLAY -# REPLAY: (success = 0) |

