brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 35ba580 Raw
60 lines · plain
1## Tests the case where the DW_AT_LLVM_include_path of the module is invalid.2## We forces this by just removing that directory (which in our case is 'sources').3#4# REQUIRES: system-darwin5#6# RUN: split-file %s %t/sources7# RUN: %clang_host -g %t/sources/main.m -fmodules -fcxx-modules \8# RUN:             -fmodule-map-file=%t/sources/module.modulemap \9# RUN:             -fmodules-cache-path=%t/ModuleCache -o %t.out10#11# RUN: cp %t/sources/commands.input %t/commands.input12# RUN: cp %t/sources/commands-with-log.input %t/commands-with-log.input13# RUN: rm -r %t/sources14#15# RUN: %lldb -x -o "settings set interpreter.stop-command-source-on-error false" \16# RUN:       -s %t/commands.input %t.out -o exit 2>&1 | FileCheck %s --check-prefix=NO_LOG17#18# RUN: %lldb -x -o "settings set interpreter.stop-command-source-on-error false" \19# RUN:       -s %t/commands-with-log.input %t.out -o exit 2>&1 | FileCheck %s --check-prefix=LOG20 21#--- main.m22@import foo;23@import bar;24 25int main() { __builtin_debugtrap(); }26 27#--- foo.h28struct foo {};29 30#--- bar.h31struct bar {};32 33#--- module.modulemap34module foo {35    header "foo.h"36    export *37}38 39module bar {40    header "bar.h"41    export *42}43 44#--- commands.input45run46## Make sure expression fails so the 'note' diagnostics get printed.47expr blah48 49# NO_LOG-NOT: couldn't find module search path directory {{.*}}sources50# NO_LOG-NOT: couldn't find module search path directory {{.*}}sources51 52#--- commands-with-log.input53log enable lldb expr54run55## Make sure expression fails so the 'note' diagnostics get printed.56expr blah57 58# LOG: couldn't find module search path directory {{.*}}sources59# LOG: couldn't find module search path directory {{.*}}sources60