|
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. |
2 | 2 | ; REQUIRES: x86, system-windows
|
3 | 3 |
|
4 | 4 | ; RUN: opt -module-hash -module-summary %s -o %t.o
|
5 | 5 | ; RUN: opt -module-hash -module-summary %p/Inputs/lto-cache.ll -o %t2.o
|
6 | 6 | ; RUN: rm -Rf %t.cache && mkdir %t.cache
|
7 | 7 |
|
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. |
10 | 10 | ; RUN: echo -n "/lldltocache:%t.cache/" > %t_rsp
|
11 | 11 | ; RUN: echo -n "01234567890123456789012345678901234567890123456789" >> %t_rsp
|
12 | 12 | ; RUN: echo -n "01234567890123456789012345678901234567890123456789" >> %t_rsp
|
|
15 | 15 | ; RUN: echo -n "01234567890123456789012345678901234567890123456789" >> %t_rsp
|
16 | 16 | ; RUN: echo -n "01234567890/bob/" >> %t_rsp
|
17 | 17 |
|
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. |
19 | 20 | ; RUN: not lld-link @%t_rsp /out:%t3 /entry:main %t2.o %t.o 2>&1 | FileCheck %s \
|
20 | 21 | ; 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 |
22 | 24 |
|
23 | 25 | target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
24 | 26 | target triple = "x86_64-pc-windows-msvc"
|
|
0 commit comments