[Lldb-commits] [lldb] 488fcea - [lldb] Use custom script instead of lldb.macosx.crashlog in test

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Jul 9 12:42:16 PDT 2021


Author: Jonas Devlieghere
Date: 2021-07-09T12:42:11-07:00
New Revision: 488fcea3b552e6cbc96eb767abdfb11f4184b812

URL: https://github.com/llvm/llvm-project/commit/488fcea3b552e6cbc96eb767abdfb11f4184b812
DIFF: https://github.com/llvm/llvm-project/commit/488fcea3b552e6cbc96eb767abdfb11f4184b812.diff

LOG: [lldb] Use custom script instead of lldb.macosx.crashlog in test

I'm not entirely sure this is the problem, but the Windows bot doesn't
seem to like this test. Let's do something similar to
command_import.test which doesn't have that issue.

Added: 
    

Modified: 
    lldb/test/Shell/ScriptInterpreter/Python/silent_command_script_import.test

Removed: 
    


################################################################################
diff  --git a/lldb/test/Shell/ScriptInterpreter/Python/silent_command_script_import.test b/lldb/test/Shell/ScriptInterpreter/Python/silent_command_script_import.test
index 58e15439a008..d6a42a4f7aff 100644
--- a/lldb/test/Shell/ScriptInterpreter/Python/silent_command_script_import.test
+++ b/lldb/test/Shell/ScriptInterpreter/Python/silent_command_script_import.test
@@ -1,8 +1,11 @@
 # REQUIRES: python
 
-# RUN: %lldb --script-language python -o 'command script import lldb.macosx.crashlog' 2>&1 | FileCheck %s
-# RUN: %lldb --script-language python -o 'command script import -s lldb.macosx.crashlog' 2>&1 | FileCheck %s --check-prefix SILENT
-# RUN: %lldb --script-language python -o 'command script import --silent lldb.macosx.crashlog' 2>&1 | FileCheck %s --check-prefix SILENT
+# RUN: rm -rf %t && mkdir -p %t
+# RUN: echo "print('Rene Magritte')" >> %t/foo.py
 
-CHECK: commands have been installed
-SILENT-NOT: commands have been installed
+# RUN: %lldb --script-language python -o 'command script import %t/foo.py' 2>&1 | FileCheck %s
+# RUN: %lldb --script-language python -o 'command script import -s %t/foo.py' 2>&1 | FileCheck %s --check-prefix SILENT
+# RUN: %lldb --script-language python -o 'command script import --silent %t/foo.py' 2>&1 | FileCheck %s --check-prefix SILENT
+
+CHECK: Rene Magritte
+SILENT-NOT: Rene Magritte


        


More information about the lldb-commits mailing list