aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2021-06-22 16:07:53 +0100
committerPeter Maydell <peter.maydell@linaro.org>2021-06-22 16:07:53 +0100
commitb22726abdfa54592d6ad88f65b0297c0e8b363e2 (patch)
tree32f7589cd877a31509065ff6e2774916b2d3e0a1 /tests/tcg
parentbf7942e406cb5e96d2490909d2cb31c7625b087b (diff)
parent96ff758c6e9cd5a01443ee15afbd0df4f00c37a8 (diff)
downloadqemu-b22726abdfa54592d6ad88f65b0297c0e8b363e2.zip
qemu-b22726abdfa54592d6ad88f65b0297c0e8b363e2.tar.gz
qemu-b22726abdfa54592d6ad88f65b0297c0e8b363e2.tar.bz2
Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-6.1-pull-request' into staging
Linux-user pull request 20210621 # gpg: Signature made Mon 21 Jun 2021 12:03:53 BST # gpg: using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C # gpg: issuer "laurent@vivier.eu" # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full] # gpg: aka "Laurent Vivier <laurent@vivier.eu>" [full] # gpg: aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full] # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F 5173 F30C 38BD 3F2F BE3C * remotes/vivier2/tags/linux-user-for-6.1-pull-request: linux-user: Use public sigev_notify_thread_id member if available linux-user: Fix incorrect use of feature-test-macros linux-user: Check for ieee128 fpbits in PPC64 HWCAP2 feature list tests/tcg/linux-test: Check that sigaction can query SIGKILL/SIGSTOP linux-user: Let sigaction query SIGKILL/SIGSTOP linux-user: Implement pivot_root linux-user/trace-events: fix minor typo in format string linux-user: Disable static assert involving __SIGRTMAX if it is missing linux-user: Set CF_PARALLEL when mapping shared memory Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests/tcg')
-rw-r--r--tests/tcg/multiarch/linux-test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/tcg/multiarch/linux-test.c b/tests/tcg/multiarch/linux-test.c
index 96bbad5..c8c6aed 100644
--- a/tests/tcg/multiarch/linux-test.c
+++ b/tests/tcg/multiarch/linux-test.c
@@ -496,6 +496,15 @@ static void test_signal(void)
sigemptyset(&act.sa_mask);
act.sa_flags = 0;
chk_error(sigaction(SIGSEGV, &act, NULL));
+
+ if (sigaction(SIGKILL, &act, NULL) == 0) {
+ error("sigaction(SIGKILL, &act, NULL) must not succeed");
+ }
+ if (sigaction(SIGSTOP, &act, NULL) == 0) {
+ error("sigaction(SIGSTOP, &act, NULL) must not succeed");
+ }
+ chk_error(sigaction(SIGKILL, NULL, &act));
+ chk_error(sigaction(SIGSTOP, NULL, &act));
}
#define SHM_SIZE 32768