summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp
diff options
context:
space:
mode:
authorAdrian McCarthy <amccarth@google.com>2016-05-04 23:32:35 +0000
committerAdrian McCarthy <amccarth@google.com>2016-05-04 23:32:35 +0000
commit3f99810787978140ff5898284a9f08a7f559f9e6 (patch)
tree46c5ac2e2f8959f08d7eecc429dc8bf808c1a01f /lldb/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp
parent9de88d9bbef514125d0e1bd2f5b9d3a2dd43c631 (diff)
downloadbcm5719-llvm-3f99810787978140ff5898284a9f08a7f559f9e6.tar.gz
bcm5719-llvm-3f99810787978140ff5898284a9f08a7f559f9e6.zip
XFail TestLambdas.py on Windows after fixing some of the problems
1. Fixed semicolon placement in the lambda in the test itself. 2. Fixed lldbinline tests in general so that we don't attempt tests on platforms that don't use the given type of debug info. (For example, no DWO tests on Windows.) This fixes one of the two failures on Windows. (TestLambdas.py was the only inline test that wasn't XFailed or skipped on Windows.) 3. Set the error string in IRInterpreter::CanInterpret so that the caller doesn't print (null) instead of an explanation. I don't entirely understand the error, so feel free to suggest a better wording. 4. XFailed the test on Windows. The interpreter won't evaluate the lambda because the module has multiple function bodies. I don't exactly understand why that's a problem for the interpreter nor why the problem arises only on Windows. Differential Revision: http://reviews.llvm.org/D19606 llvm-svn: 268573
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp b/lldb/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp
index 8d387d2ffb6..3cce3baf292 100644
--- a/lldb/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp
+++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/lambdas/main.cpp
@@ -11,7 +11,7 @@
int main (int argc, char const *argv[])
{
- printf("Stop here\n"); //% self.runCmd("expression auto $add = [](int a, int b) { return a + b };")
- //% self.expect("expression $add(2,3)", substrs = ['= 5'])
- return 0;
+ printf("Stop here\n"); //% self.runCmd("expression auto $add = [](int a, int b) { return a + b; }")
+ //% self.expect("expression $add(2,3)", substrs = ['= 5'])
+ return 0;
}
OpenPOWER on IntegriCloud