blob: 9cab60bf8dbfa8b5e9ec102f58680f43e0ef8ce0 [file] [edit]
# REQUIRES: python, system-darwin
# Test that when a module is listed in target.auto-load-scripts-for-modules with 'false',
# its scripting resources are NOT loaded even when target.load-script-from-symbol-file
# is true.
# RUN: split-file %s %t
# RUN: %clang_host -g %t/main.c -o %t/TestModule.out
# RUN: mkdir -p %t/TestModule.out.dSYM/Contents/Resources/Python
# RUN: cp %t/dsym_script.py %t/TestModule.out.dSYM/Contents/Resources/Python/TestModule.py
# RUN: %lldb -b \
# RUN: -o 'settings set target.load-script-from-symbol-file true' \
# RUN: -o 'settings set target.auto-load-scripts-for-modules TestModule=false' \
# RUN: -o 'target create %t/TestModule.out' 2>&1 \
# RUN: | FileCheck %s --implicit-check-not=AUTOLOAD_SUCCESS --implicit-check-not=warning
#--- main.c
int main() { return 0; }
#--- dsym_script.py
import sys
def __lldb_init_module(debugger, internal_dict):
print("AUTOLOAD_SUCCESS", file=sys.stderr)