Revert r371023 "[lib/ObjectYAML] - Stop calling error(1) when mapping the st_other...
[llvm-complete.git] / test / DebugInfo / dwarfdump-decompression-error.test
blob184833164dc9a5610514846ef9bee8a07ea61703
1 REQUIRES: zlib
3 // dwarfdump-decompression-error.elf-x86-64 is prepared using following
4 // source code and invocation:
5 // test.cpp:
6 // int main() { return 0; }
7 //
8 // gcc test.cpp -o out -g -Wl,--compress-debug-sections,zlib
9 //
10 // After that result object was modified manually. One random byte in compressed
11 // content of .debug_info section was changed to 0xff. That breaks normal 
12 // decompression flow in runtime.
13 RUN: llvm-dwarfdump %p/Inputs/dwarfdump-decompression-error.elf-x86-64 2>&1 | FileCheck %s
15 CHECK: error: failed to decompress '.debug_info', zlib error: Z_DATA_ERROR