From 962213d3ac235a12db4f8fd3c6581aa488482f0a Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Mon, 14 May 2018 21:32:47 +0000 Subject: [PATCH] [llvm-rc] Add missing inputs for tag-icon-cursor.test. This adds the missing input files used for this test, except for the separate input files for specific error cases; matching test input files were provided by Nico Weber. The extra copying of files into the %t directory doesn't seem to be necessary since that directory only ever is used for output here, not for inputs. Differential Revision: https://reviews.llvm.org/D46813 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332297 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tools/llvm-rc/Inputs/cursor-32.cur | Bin 0 -> 4286 bytes test/tools/llvm-rc/Inputs/cursor-8.cur | Bin 0 -> 2238 bytes test/tools/llvm-rc/Inputs/cursor.cur | Bin 0 -> 326 bytes test/tools/llvm-rc/Inputs/icon-new.ico | Bin 0 -> 17542 bytes test/tools/llvm-rc/Inputs/icon-old.ico | Bin 0 -> 17542 bytes test/tools/llvm-rc/Inputs/icon-png.ico | Bin 0 -> 104 bytes test/tools/llvm-rc/tag-icon-cursor.test | 30 ++---------------------------- 7 files changed, 2 insertions(+), 28 deletions(-) create mode 100644 test/tools/llvm-rc/Inputs/cursor-32.cur create mode 100644 test/tools/llvm-rc/Inputs/cursor-8.cur create mode 100644 test/tools/llvm-rc/Inputs/cursor.cur create mode 100644 test/tools/llvm-rc/Inputs/icon-new.ico create mode 100644 test/tools/llvm-rc/Inputs/icon-old.ico create mode 100644 test/tools/llvm-rc/Inputs/icon-png.ico diff --git a/test/tools/llvm-rc/Inputs/cursor-32.cur b/test/tools/llvm-rc/Inputs/cursor-32.cur new file mode 100644 index 0000000000000000000000000000000000000000..47967fe7bddb1c900dff30c8ed659bff38eba623 GIT binary patch literal 4286 zcmeH|%W4!s6o$_vG0{jaUZUb9H^qn~Mifj$#S6LZ+de*EvAI^tABTmgpS0Wixi z#$0P{2HFg?8E7+5O9nc4k%O|VH>ho59a(D#=a~`unLO4+9`vbywGP1;9ER}%`=c-n zzE|fOvaXuyO@Lp}<8Y#2iuNeDwya;r8jQ!d^sSzs^s}%C7vU0IfHQCmjzD=0Jnq|! z!cijuuT{V7VHZFDV!ZUacZ{S0L{d?d$=fM4Nk31(; z^v(GK=z9a+!B_ZR@Qqf!z$;jTS;+dvU&Utlv$<7w3$or;+K$BYr-IM4AK@unhI0OS z+_!ngp1^zc`oWyJc>!K*>`U7;Q3w# z^XnP6&Zc|jt;LgI?NvE<{C&?nL)P{>m}}SIx$yom)>~j*Tm$a~$LrL`U6|iZukC`a6}H!3}LhMMaC~DRToVZb4{hA}S^ z*o-nW4p1h@7}(q71qsl?8`vrvV~9GcXrhg=x?{VZD3B&ahAh!9^h59K@y=DwcP=>X zlrzqv!jF3Tin>7C|2M>YAH4R;8*ja@-Y|52RkQ~AkMaJ-{CLT{I%9t7e%6AmP6Zz^ MKa_r*-}}ndA0;1@bpQYW literal 0 HcmV?d00001 diff --git a/test/tools/llvm-rc/Inputs/cursor.cur b/test/tools/llvm-rc/Inputs/cursor.cur new file mode 100644 index 0000000000000000000000000000000000000000..f849d473481d534c3faf1606946fcc221b3f23c2 GIT binary patch literal 326 zcmb`9F%CdL6hz;y4v9`{J4y#oIGV!E96+n%2okMi?9y1Z_wy$6n*oc#IZH}LYoG)g wuk-d^<1aAW`GkFSjj!jA>LA&nTA<70!Mugw7yZd9orSd3(sabb$1DZETnI{nu>b%7 literal 0 HcmV?d00001 diff --git a/test/tools/llvm-rc/Inputs/icon-new.ico b/test/tools/llvm-rc/Inputs/icon-new.ico new file mode 100644 index 0000000000000000000000000000000000000000..dad43e7a6368bc77593b8da6b57fd4f0fca0d72a GIT binary patch literal 17542 zcmeI&F;2rU7zWS}sY@5su@lMw5@RQ3rk;b5qi~c?T!MRW75JRA8~_PbBF~a-*-0$r z$@*nGNp7;qZkN_mUN^}x$$r1I-?qtn`=)7WpL*ZZZE`rA+Yia-UGmsxdZ{BU{jJhr z^U-@pzN9aS0D;vCT;jlQ>k(%fn$qwy$E$gq#wc-SwNuKA6Cgl<009DLfq7l@hs9Wj zP0i2EW8XNZZUC*rOhEz!2oNAZfB*pk1PBlyus(t1VBmV?IHwrjie8$3&MEGlQ>X=6cU@~OmDh5tyxnWE-QLbO$@wjLuY39!%Tm%6ElNA{2z@z(KXR0)%%Fn&dRE<(+CflXFH~|6#2oNA}6L@rd_1F9Q zIILCMSL^e_A!-6>9Ht8rAV7cs0RjXF5FkK+0DfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNCfp9SjoAn`&1 | FileCheck %s --check-prefix NOFILE ; NOFILE: llvm-rc: Error in CURSOR statement (ID 500): -; NOFILE-NEXT: Error opening cursor 'this-file-does-not-exist.cur': +; NOFILE-NEXT: file not found : this-file-does-not-exist.cur ; RUN: not llvm-rc /FO %t/1 %p/Inputs/tag-icon-cursor-nonsense.rc 2>&1 | FileCheck %s --check-prefix NONSENSE ; NONSENSE: llvm-rc: Error in ICON statement (ID 1): ; NONSENSE-NEXT: Incorrect icon/cursor Reserved field; should be 0. - - -; RUN: not llvm-rc /FO %t/1 %p/Inputs/tag-icon-cursor-eof.rc 2>&1 | FileCheck %s --check-prefix EOF - -; EOF: llvm-rc: Error in CURSOR statement (ID 72): -; EOF-NEXT: Stream Error: The stream is too short to perform the requested operation. - - -; RUN: not llvm-rc /FO %t/1 %p/Inputs/tag-icon-cursor-bad-offset.rc 2>&1 | FileCheck %s --check-prefix OFFSET - -; OFFSET: llvm-rc: Error in CURSOR statement (ID 50): -; OFFSET-NEXT: Stream Error: The specified offset is invalid for the current stream. - - -; RUN: not llvm-rc /FO %t/1 %p/Inputs/tag-icon-cursor-bad-type.rc 2>&1 | FileCheck %s --check-prefix BADTYPE - -; BADTYPE: llvm-rc: Error in ICON statement (ID 100): -; BADTYPE-NEXT: Incorrect icon/cursor ResType field; should be 1. -- 2.11.0