[Lldb-commits] [lldb] r337393 - [lit, lldbsuite] Remove tests that are duplicated between lit and lldb-suite

Stella Stamenova via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 18 08:16:54 PDT 2018


Author: stella.stamenova
Date: Wed Jul 18 08:16:54 2018
New Revision: 337393

URL: http://llvm.org/viewvc/llvm-project?rev=337393&view=rev
Log:
[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

Removed:
    lldb/trunk/lit/Expr/Inputs/anonymous-struct.cpp
    lldb/trunk/lit/Expr/TestCallStdStringFunction.test
    lldb/trunk/lit/Expr/TestCallStopAndContinue.test
    lldb/trunk/lit/Expr/TestCallUserAnonTypedef.test
    lldb/trunk/lit/Expr/TestCallUserDefinedFunction.test

Removed: lldb/trunk/lit/Expr/Inputs/anonymous-struct.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Expr/Inputs/anonymous-struct.cpp?rev=337392&view=auto
==============================================================================
--- lldb/trunk/lit/Expr/Inputs/anonymous-struct.cpp (original)
+++ lldb/trunk/lit/Expr/Inputs/anonymous-struct.cpp (removed)
@@ -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));
-}

Removed: lldb/trunk/lit/Expr/TestCallStdStringFunction.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Expr/TestCallStdStringFunction.test?rev=337392&view=auto
==============================================================================
--- lldb/trunk/lit/Expr/TestCallStdStringFunction.test (original)
+++ lldb/trunk/lit/Expr/TestCallStdStringFunction.test (removed)
@@ -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

Removed: lldb/trunk/lit/Expr/TestCallStopAndContinue.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Expr/TestCallStopAndContinue.test?rev=337392&view=auto
==============================================================================
--- lldb/trunk/lit/Expr/TestCallStopAndContinue.test (original)
+++ lldb/trunk/lit/Expr/TestCallStopAndContinue.test (removed)
@@ -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")

Removed: lldb/trunk/lit/Expr/TestCallUserAnonTypedef.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Expr/TestCallUserAnonTypedef.test?rev=337392&view=auto
==============================================================================
--- lldb/trunk/lit/Expr/TestCallUserAnonTypedef.test (original)
+++ lldb/trunk/lit/Expr/TestCallUserAnonTypedef.test (removed)
@@ -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

Removed: lldb/trunk/lit/Expr/TestCallUserDefinedFunction.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Expr/TestCallUserDefinedFunction.test?rev=337392&view=auto
==============================================================================
--- lldb/trunk/lit/Expr/TestCallUserDefinedFunction.test (original)
+++ lldb/trunk/lit/Expr/TestCallUserDefinedFunction.test (removed)
@@ -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




More information about the lldb-commits mailing list