blob: aeee2e8cd473db3dd5af43f6719ba77ed30ce8cf [file] [log] [blame] [edit]
# REQUIRES: python, asserts, !system-windows
#
# Test that LLDB does not load scripts from nested subdirectories inside the
# module directory.
# RUN: split-file %s %t
# RUN: %clang_host %t/main.c -o %t/TestModule.out
# RUN: mkdir -p %t/safe-path/TestModule/nested
# RUN: cp %t/script.py %t/safe-path/TestModule/nested/TestModule.py
# RUN: %lldb -b \
# RUN: -o 'settings set target.load-script-from-symbol-file true' \
# RUN: -o 'settings append testing.safe-auto-load-paths %t/safe-path' \
# RUN: -o 'target create %t/TestModule.out' 2>&1 | FileCheck %s
# CHECK-NOT: SHOULD_NOT_LOAD
#--- main.c
int main() { return 0; }
#--- script.py
import sys
def __lldb_init_module(debugger, internal_dict):
print("SHOULD_NOT_LOAD", file=sys.stderr)