Author: Jonas Devlieghere Date: 2019-12-18T15:44:07-08:00 New Revision: 48999eb398ebec72fdf7194f5d2605dd3c799caf
URL: https://github.com/llvm/llvm-project/commit/48999eb398ebec72fdf7194f5d2605dd3c799caf DIFF: https://github.com/llvm/llvm-project/commit/48999eb398ebec72fdf7194f5d2605dd3c799caf.diff LOG: [lldb/test] Move script interpreter tests Create a new test for lldb launched without a script interpreter and move it under a new `ScriptInterpreter` directory. Also move crashlog.test there for consistency. Added: lldb/test/Shell/ScriptInterpreter/None/none.test lldb/test/Shell/ScriptInterpreter/Python/crashlog.test Modified: Removed: lldb/test/Shell/Python/crashlog.test ################################################################################ diff --git a/lldb/test/Shell/ScriptInterpreter/None/none.test b/lldb/test/Shell/ScriptInterpreter/None/none.test new file mode 100644 index 000000000000..d6ef8d428732 --- /dev/null +++ b/lldb/test/Shell/ScriptInterpreter/None/none.test @@ -0,0 +1,2 @@ +# RUN: %lldb --script-language none -o 'script' 2>&1 | FileCheck %s +# CHECK: error: the script-lang setting is set to none - scripting not available diff --git a/lldb/test/Shell/Python/crashlog.test b/lldb/test/Shell/ScriptInterpreter/Python/crashlog.test similarity index 96% rename from lldb/test/Shell/Python/crashlog.test rename to lldb/test/Shell/ScriptInterpreter/Python/crashlog.test index 37e0e8c5740d..047cb80bf2f7 100644 --- a/lldb/test/Shell/Python/crashlog.test +++ b/lldb/test/Shell/ScriptInterpreter/Python/crashlog.test @@ -1,7 +1,7 @@ # -*- python -*- # REQUIRES: system-darwin -# DEBUG: cd %S/../../../examples/python && cat %s | %lldb && false -# RUN: cd %S/../../../examples/python && cat %s | %lldb | FileCheck %s +# DEBUG: cd %S/../../../../examples/python && cat %s | %lldb && false +# RUN: cd %S/../../../../examples/python && cat %s | %lldb | FileCheck %s # CHECK-LABEL: {{S}}KIP BEYOND CHECKS script import crashlog _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits