1; Should find the bitmap if it is in the same folder as the rc file. 2; RUN: rm -f %t.include.res 3; RUN: llvm-rc /FO %t.include.res %p/Inputs/include.rc 4; RUN: llvm-readobj %t.include.res | FileCheck --check-prefix=FOUND %s 5 6; Try including files without quotes. 7; RUN: rm -f %t.noquotes.res 8; RUN: llvm-rc /FO %t.noquotes.res %p/Inputs/include-noquotes.rc 9; RUN: llvm-readobj %t.noquotes.res | FileCheck --check-prefix=FOUND %s 10 11; Should find the bitmap if the folder is explicitly specified. 12; RUN: rm -f %t.nested-include.res 13; RUN: llvm-rc /FO %t.nested-include.res /I %p/Inputs/nested %p/Inputs/deep-include.rc 14; RUN: llvm-readobj %t.nested-include.res | FileCheck --check-prefix=FOUND %s 15 16; Otherwise, it should not find the bitmap. 17; RUN: rm -f %t.nested-include.res 18; RUN: not llvm-rc /FO %t.nested-include.res %p/Inputs/deep-include.rc 2>&1 \ 19; RUN: | FileCheck --check-prefix=MISSING %s 20 21; Should find the bitmap if the process's current working directory 22; contains the resource being searched for. Do this test last since it 23; changes the current working directory and could affect the success or 24; failure of other tests if run first. 25; RUN: rm -f %t.nested-include.res 26; RUN: cd %p/Inputs/nested 27; RUN: llvm-rc /FO %t.nested-include.res %p/Inputs/include.rc 28; RUN: llvm-readobj %t.nested-include.res | FileCheck --check-prefix=FOUND %s 29 30FOUND: Resource type (int): 2 31FOUND-NEXT: Resource name (string): FOO 32FOUND-NEXT: Data version: 0 33FOUND-NEXT: Memory flags: 0x30 34FOUND-NEXT: Language ID: 1033 35FOUND-NEXT: Version (major): 0 36FOUND-NEXT: Version (minor): 0 37FOUND-NEXT: Characteristics: 0 38FOUND-NEXT: Data size: 96 39FOUND-NEXT: Data: ( 40FOUND-NEXT: 0000: 28000000 02000000 07000000 01001800 |(...............| 41FOUND-NEXT: 0010: 00000000 38000000 00000000 00000000 |....8...........| 42FOUND-NEXT: 0020: 00000000 00000000 5BB3855B B3850000 |........[..[....| 43FOUND-NEXT: 0030: FFFFFFFF FFFF0000 FFFFFFFF FFFF0000 |................| 44FOUND-NEXT: 0040: FFFFFFFF FFFF0000 5BB385FF FFFF0000 |........[.......| 45FOUND-NEXT: 0050: FFFFFF0E C9FF0000 241CEDFF FFFF0000 |........$.......| 46FOUND-NEXT: ) 47 48MISSING: llvm-rc: Error in BITMAP statement (ID foo): 49MISSING-NEXT: error : file not found : nested_bitmap.bmp 50