summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2018-07-27 20:38:01 +0000
committerDavide Italiano <davide@freebsd.org>2018-07-27 20:38:01 +0000
commit2d396a912a76f88f36f4f805d926884d4b08019c (patch)
tree16427b35bee9c3df87d241d5a722ef45483e83d0 /lldb/packages/Python/lldbsuite/test
parent173484d78ca1fe4cf4bfdad208dd1b8c6256061e (diff)
downloadbcm5719-llvm-2d396a912a76f88f36f4f805d926884d4b08019c.tar.gz
bcm5719-llvm-2d396a912a76f88f36f4f805d926884d4b08019c.zip
Revert "Recommit [DataFormatters] Add formatter for C++17 std::optional."
This broke a linux bot which doesn't support -std=c++17. The solution is to add a decorator to skip these tests on machines with older compilers. llvm-svn: 338162
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/optional/Makefile7
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/optional/TestDataFormatterLibcxxOptional.py59
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/optional/main.cpp27
3 files changed, 0 insertions, 93 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/optional/Makefile b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/optional/Makefile
deleted file mode 100644
index a6ea665ef63..00000000000
--- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/optional/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-LEVEL = ../../../../../make
-
-CXX_SOURCES := main.cpp
-
-USE_LIBCPP := 1
-include $(LEVEL)/Makefile.rules
-CXXFLAGS += -std=c++17
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/optional/TestDataFormatterLibcxxOptional.py b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/optional/TestDataFormatterLibcxxOptional.py
deleted file mode 100644
index 630b49693f4..00000000000
--- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/optional/TestDataFormatterLibcxxOptional.py
+++ /dev/null
@@ -1,59 +0,0 @@
-"""
-Test lldb data formatter subsystem.
-"""
-
-from __future__ import print_function
-
-
-import os
-import time
-import lldb
-from lldbsuite.test.decorators import *
-from lldbsuite.test.lldbtest import *
-from lldbsuite.test import lldbutil
-
-
-class LibcxxOptionalDataFormatterTestCase(TestBase):
-
- mydir = TestBase.compute_mydir(__file__)
-
- @add_test_categories(["libc++"])
-
- def test_with_run_command(self):
- """Test that that file and class static variables display correctly."""
- self.build()
- self.runCmd("file " + self.getBuildArtifact("a.out"), CURRENT_EXECUTABLE_SET)
-
- bkpt = self.target().FindBreakpointByID(
- lldbutil.run_break_set_by_source_regexp(
- self, "break here"))
-
- self.runCmd("run", RUN_SUCCEEDED)
-
- # The stop reason of the thread should be breakpoint.
- self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
- substrs=['stopped',
- 'stop reason = breakpoint'])
-
- self.expect("frame variable number_not_engaged",
- substrs=['Has Value=false'])
-
- self.expect("frame variable number_engaged",
- substrs=['Has Value=true',
- 'Value = 42',
- '}'])
-
- self.expect("frame var numbers",
- substrs=['(optional_int_vect) numbers = Has Value=true {',
- 'Value = size=4 {',
- '[0] = 1',
- '[1] = 2',
- '[2] = 3',
- '[3] = 4',
- '}',
- '}'])
-
- self.expect("frame var ostring",
- substrs=['(optional_string) ostring = Has Value=true {',
- 'Value = "hello"',
- '}'])
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/optional/main.cpp b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/optional/main.cpp
deleted file mode 100644
index 8ff54d1f119..00000000000
--- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/optional/main.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <cstdio>
-#include <string>
-#include <vector>
-#include <optional>
-
-using int_vect = std::vector<int> ;
-using optional_int = std::optional<int> ;
-using optional_int_vect = std::optional<int_vect> ;
-using optional_string = std::optional<std::string> ;
-
-int main()
-{
- optional_int number_not_engaged ;
- optional_int number_engaged = 42 ;
-
- printf( "%d\n", *number_engaged) ;
-
- optional_int_vect numbers{{1,2,3,4}} ;
-
- printf( "%d %d\n", numbers.value()[0], numbers.value()[1] ) ;
-
- optional_string ostring = "hello" ;
-
- printf( "%s\n", ostring->c_str() ) ;
-
- return 0; // break here
-}
OpenPOWER on IntegriCloud