mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 02:46:11 +00:00

* Use split-file * Remove -o /dev/null * Avoid `{ list; }` compound command not supported by the lit internal shell (#102382) * Don't test "ld.lld" before "error:" as per convention Pull Request: https://github.com/llvm/llvm-project/pull/105454
16 lines
772 B
Batchfile
16 lines
772 B
Batchfile
:: REQUIRES: x86, system-windows
|
|
:: RUN: echo | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t0.o
|
|
:: RUN: not ld.lld -o /dev/null -lidontexist --error-handling-script=%s %t0.o 2>&1 |\
|
|
:: RUN: FileCheck --check-prefix=CHECK-LIB %s
|
|
:: RUN: not ld.lld -o /dev/null -lidontexist --error-handling-script=%s.nope %t0.o 2>&1 |\
|
|
:: RUN: FileCheck --check-prefix=CHECK-SCRIPT-DOES-NOT-EXIST -DFILE=%s.nope %s
|
|
::
|
|
:: CHECK-LIB: script: info: called with missing-lib idontexist
|
|
:: CHECK-LIB-NEXT: error: unable to find library -lidontexist
|
|
|
|
:: CHECK-SCRIPT-DOES-NOT-EXIST: error: unable to find library -lidontexist
|
|
:: CHECK-SCRIPT-DOES-NOT-EXIST-NEXT: error: error handling script '[[FILE]]' failed to execute
|
|
|
|
@echo off
|
|
echo "script: info: called with %*"
|