Skip to content

Commit 3233c0d

Browse files
committed
Minor improvements to lld/test/COFF/lto-cache-errors.ll
1 parent 1125fef commit 3233c0d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lld/test/COFF/lto-cache-errors.ll

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
;; The output is OS specific, so make this test specific to Windows.
1+
;; The output is OS-specific, so this test is limited to Windows.
22
; REQUIRES: x86, system-windows
33

44
; RUN: opt -module-hash -module-summary %s -o %t.o
55
; RUN: opt -module-hash -module-summary %p/Inputs/lto-cache.ll -o %t2.o
66
; RUN: rm -Rf %t.cache && mkdir %t.cache
77

8-
; Use a 261-character path component which filesystems will fail to create. Use
9-
; a response file to allow breaking up the long path into 50-character chunks.
8+
;; Use a 261-character path component that typical filesystems will reject.
9+
;; Use a response file to break the long path into 50-character chunks.
1010
; RUN: echo -n "/lldltocache:%t.cache/" > %t_rsp
1111
; RUN: echo -n "01234567890123456789012345678901234567890123456789" >> %t_rsp
1212
; RUN: echo -n "01234567890123456789012345678901234567890123456789" >> %t_rsp
@@ -15,10 +15,12 @@
1515
; RUN: echo -n "01234567890123456789012345678901234567890123456789" >> %t_rsp
1616
; RUN: echo -n "01234567890/bob/" >> %t_rsp
1717

18-
;; Check fatal usage error emitted when the cache dir can't be created.
18+
; Check that a fatal usage error is emitted when the cache dir can't be created.
19+
; The --implicit-check-not arguments verify that no crash-style output is shown.
1920
; RUN: not lld-link @%t_rsp /out:%t3 /entry:main %t2.o %t.o 2>&1 | FileCheck %s \
2021
; RUN: --ignore-case --implicit-check-not=bug --implicit-check-not=crash
21-
; CHECK: LLVM ERROR: can't create cache directory {{.*}}/bob/: {{.*(invalid argument)|(too long)}}
22+
23+
; CHECK: LLVM ERROR: can't create cache directory {{.*}}/bob/: invalid argument
2224

2325
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
2426
target triple = "x86_64-pc-windows-msvc"

0 commit comments

Comments
 (0)