blob: ea73ab2218975da676aecb2d16b1ac80821e2c7a [file] [log] [blame]
# Check that SIGINT handling aborts a build.
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.llbuild
# RUN: cp %S/Inputs/wait-for-file %t.build
# RUN: /bin/bash -x -c \
# RUN: "%{llbuild} buildsystem build --serial --chdir %t.build --no-db &> %t.out & \
# RUN: echo $! >%t.build/llbuild.pid; \
# RUN: wait $(cat %t.build/llbuild.pid)" || true
# RUN: %{FileCheck} --input-file %t.out %s
#
# CHECK: SIGNAL
# CHECK: cancelling build.
#
# FIXME: Disabled on Linux for the time being, it doesn't always pass. See https://bugs.swift.org/browse/SR-3427
# REQUIRES: platform=Darwin
client:
name: basic
targets:
"": ["llbuild.pid"]
commands:
SIGNAL:
tool: shell
inputs: ["<cleanup>"]
outputs: ["llbuild.pid"]
description: "SIGNAL"
args:
./wait-for-file llbuild.pid &&
cat llbuild.pid | xargs kill -SIGINT