diff options
| author | Stella Stamenova <stilis@microsoft.com> | 2018-07-18 15:16:54 +0000 |
|---|---|---|
| committer | Stella Stamenova <stilis@microsoft.com> | 2018-07-18 15:16:54 +0000 |
| commit | 0f97581af74276471100ac25596c0e3762a299d1 (patch) | |
| tree | 03d544caf744074ff8377134814d94d751c31fc0 | |
| parent | e9d7b3198a3dfd805198d52a6e2c8f3f63cb740a (diff) | |
| download | bcm5719-llvm-0f97581af74276471100ac25596c0e3762a299d1.tar.gz bcm5719-llvm-0f97581af74276471100ac25596c0e3762a299d1.zip | |
[lit, lldbsuite] Remove tests that are duplicated between lit and lldb-suite
Summary: Several tests exist in both lit and lldbsuite. This removes the lit version of the duplicated tests.
Reviewers: asmith, zturner
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D49450
llvm-svn: 337393
| -rw-r--r-- | lldb/lit/Expr/Inputs/anonymous-struct.cpp | 26 | ||||
| -rw-r--r-- | lldb/lit/Expr/TestCallStdStringFunction.test | 11 | ||||
| -rw-r--r-- | lldb/lit/Expr/TestCallStopAndContinue.test | 12 | ||||
| -rw-r--r-- | lldb/lit/Expr/TestCallUserAnonTypedef.test | 11 | ||||
| -rw-r--r-- | lldb/lit/Expr/TestCallUserDefinedFunction.test | 20 |
5 files changed, 0 insertions, 80 deletions
diff --git a/lldb/lit/Expr/Inputs/anonymous-struct.cpp b/lldb/lit/Expr/Inputs/anonymous-struct.cpp deleted file mode 100644 index 1985fbf65b9..00000000000 --- a/lldb/lit/Expr/Inputs/anonymous-struct.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include <cmath> - -typedef struct { - float f; - int i; -} my_untagged_struct; - -double multiply(my_untagged_struct *s) -{ - return s->f * s->i; -} - -double multiply(my_untagged_struct *s, int x) -{ - return multiply(s) * x; -} - -int main(int argc, char **argv) -{ - my_untagged_struct s = { - .f = (float)argc, - .i = argc, - }; - // lldb testsuite break - return !(multiply(&s, argc) == pow(argc, 3)); -} diff --git a/lldb/lit/Expr/TestCallStdStringFunction.test b/lldb/lit/Expr/TestCallStdStringFunction.test deleted file mode 100644 index 36c06e469a9..00000000000 --- a/lldb/lit/Expr/TestCallStdStringFunction.test +++ /dev/null @@ -1,11 +0,0 @@ -# XFAIL: windows -# -> llvm.org/pr21765 - -# RUN: %cxx %p/Inputs/call-function.cpp -g -o %t && %lldb -b -s %s -- %t | FileCheck %s - -breakpoint set --file call-function.cpp --line 52 -run -print str -# CHECK: Hello world -print str.c_str() -# CHECK: Hello world diff --git a/lldb/lit/Expr/TestCallStopAndContinue.test b/lldb/lit/Expr/TestCallStopAndContinue.test deleted file mode 100644 index 263fa2a6f59..00000000000 --- a/lldb/lit/Expr/TestCallStopAndContinue.test +++ /dev/null @@ -1,12 +0,0 @@ -# XFAIL: windows -# -> llvm.org/pr24489 - -# RUN: %cxx %p/Inputs/call-function.cpp -g -o %t && %lldb -b -s %s -o continue -o "thread list" -- %t 2>&1 | FileCheck %s - -breakpoint set --file call-function.cpp --line 52 -run -breakpoint set --file call-function.cpp --line 14 -expression -i false -- returnsFive() -# CHECK: Execution was interrupted, reason: breakpoint -# CHECK: stop reason = User Expression thread plan -# CHECK: Completed expression: (Five) $0 = (number = 5{{.*}}, name = "five") diff --git a/lldb/lit/Expr/TestCallUserAnonTypedef.test b/lldb/lit/Expr/TestCallUserAnonTypedef.test deleted file mode 100644 index 510f40c22e2..00000000000 --- a/lldb/lit/Expr/TestCallUserAnonTypedef.test +++ /dev/null @@ -1,11 +0,0 @@ -# XFAIL: windows - -# XFAIL: armhf-linux -# -> llvm.org/pr27868 - -# RUN: %cxx %p/Inputs/anonymous-struct.cpp -g -o %t && %lldb -b -s %s -- %t | FileCheck %s - -breakpoint set --file anonymous-struct.cpp --line 24 -run -expression multiply(&s) -# CHECK: $0 = 1 diff --git a/lldb/lit/Expr/TestCallUserDefinedFunction.test b/lldb/lit/Expr/TestCallUserDefinedFunction.test deleted file mode 100644 index 0c98a9bae78..00000000000 --- a/lldb/lit/Expr/TestCallUserDefinedFunction.test +++ /dev/null @@ -1,20 +0,0 @@ -# XFAIL: windows -# -> llvm.org/pr24489 - -# RUN: %cxx %p/Inputs/call-function.cpp -g -o %t && %lldb -b -s %s -- %t | FileCheck %s - -breakpoint set --file call-function.cpp --line 52 -run -expression fib(5) -# CHECK: $0 = 5 -expression add(4,8) -# CHECK: $1 = 12 - -expression add(add(5,2),add(3,4)) -# CHECK: $2 = 14 -expression add(add(5,2),fib(5)) -# CHECK: $3 = 12 -expression stringCompare((const char*) "Hello world") -# CHECK: $4 = true -expression stringCompare((const char*) "Hellworld") -# CHECK: $5 = false |

