20 lines · plain
1## Test DWO retrieval via relative path with a missing CompDir.2## Also, verify no crash for an absolute DWOName path.3 4## The case where DWOName is a relative path, and debug compilation directory does not exist.5# RUN: rm -rf %t && mkdir -p %t && cd %t6# RUN: %clang %cflags -g -gsplit-dwarf -fdebug-compilation-dir=/path/does/not/exist %p/Inputs/hello.c -o main.exe7# RUN: llvm-bolt %t/main.exe -o %t/main.exe.bolt -update-debug-sections 2>&1 | FileCheck %s -check-prefix=DWO-NAME-REL8 9# DWO-NAME-REL: BOLT-WARNING: Debug Fission: Debug Compilation Directory of main.exe-hello.dwo does not exist.10# DWO-NAME-REL-NOT: Debug Fission: DWO debug information for11 12## The case where DWOName is a absolute path, and a dwp file is provided.13# RUN: %clang %cflags -g -gsplit-dwarf %p/Inputs/hello.c -o %t/main.exe14# RUN: llvm-dwp -e %t/main.exe -o %t/main.exe.dwp15# RUN: llvm-bolt %t/main.exe -o %t/main.exe.bolt -update-debug-sections -dwp=%t/main.exe.dwp 2>&1 | FileCheck %s -check-prefix=DWO-NAME-ABS16 17# DWO-NAME-ABS-NOT: BOLT-WARNING: Debug Fission: Debug Compilation Directory of {{.*}}/main.exe-hello.dwo does not exist.18# DWO-NAME-ABS-NOT: Debug Fission: DWO debug information for19# DWO-NAME-ABS-NOT: Assertion `FD >= 0 && "File not yet open!"' failed.20