tests: handling signal on win32 properly
commitfec7bcf16b1b77d648b23d7832a39aef9f11aea0
authorYonggang Luo <luoyonggang@gmail.com>
Wed, 2 Sep 2020 17:00:53 +0000 (3 01:00 +0800)
committerThomas Huth <thuth@redhat.com>
Sun, 6 Sep 2020 18:26:43 +0000 (6 20:26 +0200)
tree86cdf68a2af0a0d442118ff4a3949eecf8569e3e
parent90843750e375f7c6701c8797ae04c14fad44fe89
tests: handling signal on win32 properly

SIGABRT should use signal(SIGABRT, sigabrt_handler) to handle on win32

The error:
E:/CI-Cor-Ready/xemu/qemu.org/tests/test-replication.c:559:33: error: invalid use of undefined type 'struct sigaction'
  559 |     sigact = (struct sigaction) {
      |                                 ^

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Message-Id: <20200902170054.810-6-luoyonggang@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/test-replication.c