Skip to contentSkip to conversation

tests/tcg: Test that sigreturn() does not corrupt the signal mask

PATCH Applied Ilya Leoshkevich 2 participants 3 messages Nov 8, 2024 – Nov 12, 2024

lore
Share & tools
lore
#0 lore raw

v2 cover tests/tcg: Test that sigreturn() does not corrupt the signal mask

v1: https://lore.kernel.org/qemu-devel/[email protected]/
v1 -> v2: Drop patch 1, since it's merged.
Add -pthread to the test (Richard).

Hi,

I noticed that while the sigreturn fix was merged, the test wasn't. Richard noticed that -pthread was missing, so I'm resending the test with this issue fixed.

Best regards,
Ilya

Ilya Leoshkevich (1):
tests/tcg: Test that sigreturn() does not corrupt the signal mask

 tests/tcg/multiarch/Makefile.target     |  3 ++
 tests/tcg/multiarch/sigreturn-sigmask.c | 51 +++++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 tests/tcg/multiarch/sigreturn-sigmask.c
Signature · 1 line
2.47.0
#1 lore raw

PATCH v2 1/1 tests/tcg: Test that sigreturn() does not corrupt the signal mask

Add a small test to prevent regressions.

---
 tests/tcg/multiarch/Makefile.target     |  3 ++
 tests/tcg/multiarch/sigreturn-sigmask.c | 51 +++++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 tests/tcg/multiarch/sigreturn-sigmask.c
tests/tcg/multiarch/Makefile.target +3 -0
index 78b83d5575a..18d3cf4ae00 100644
@@ -42,6 +42,9 @@ munmap-pthread: LDFLAGS+=-pthread
 vma-pthread: CFLAGS+=-pthread
 vma-pthread: LDFLAGS+=-pthread
 
+sigreturn-sigmask: CFLAGS+=-pthread
+sigreturn-sigmask: LDFLAGS+=-pthread
+
 # The vma-pthread seems very sensitive on gitlab and we currently
 # don't know if its exposing a real bug or the test is flaky.
 ifneq ($(GITLAB_CI),)
tests/tcg/multiarch/sigreturn-sigmask.c new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.47.0
#2 lore raw
In reply to Ilya Leoshkevich
Quoted 15 lines · Ilya Leoshkevich

v1: https://lore.kernel.org/qemu-devel/[email protected]/
v1 -> v2: Drop patch 1, since it's merged.
Add -pthread to the test (Richard).

Hi,

I noticed that while the sigreturn fix was merged, the test wasn't. Richard noticed that -pthread was missing, so I'm resending the test with this issue fixed.

Best regards,
Ilya

Quoted 8 lines

Ilya Leoshkevich (1):
tests/tcg: Test that sigreturn() does not corrupt the signal mask

  tests/tcg/multiarch/Makefile.target     |  3 ++
  tests/tcg/multiarch/sigreturn-sigmask.c | 51 +++++++++++++++++++++++++
  2 files changed, 54 insertions(+)

create mode 100644 tests/tcg/multiarch/sigreturn-sigmask.c

Queued, thanks.

r~