54 lines · plain
1# REQUIRES: system-darwin2#3# RUN: split-file %s %t/sources4# RUN: %clang_host -g %t/sources/main.m -fmodules -fcxx-modules \5# RUN: -fmodule-map-file=%t/sources/module.modulemap \6# RUN: -fmodules-cache-path=%t/ModuleCache -o %t.out7# RUN: rm %t/sources/module.modulemap8#9# RUN: %lldb -x -o "settings set interpreter.stop-command-source-on-error false" \10# RUN: -s %t/sources/commands.input %t.out -o exit 2>&1 | FileCheck %s --check-prefix=NO_LOG11#12# RUN: %lldb -x -o "settings set interpreter.stop-command-source-on-error false" \13# RUN: -s %t/sources/commands-with-log.input %t.out -o exit 2>&1 | FileCheck %s --check-prefix=LOG14 15#--- main.m16@import foo;17@import bar;18 19int main() { __builtin_debugtrap(); }20 21#--- foo.h22struct foo {};23 24#--- bar.h25struct bar {};26 27#--- module.modulemap28module foo {29 header "foo.h"30 export *31}32 33module bar {34 header "bar.h"35 export *36}37 38#--- commands.input39run40## Make sure expression fails so the 'note' diagnostics get printed.41expr blah42 43# NO_LOG-NOT: couldn't find modulemap44# NO_LOG-NOT: couldn't find modulemap45 46#--- commands-with-log.input47log enable lldb expr48run49## Make sure expression fails so the 'note' diagnostics get printed.50expr blah51 52# LOG: couldn't find modulemap file in {{.*}}sources53# LOG: couldn't find modulemap file in {{.*}}sources54