From: "lina.zhao" <lina.zhao@windriver.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [patch]rt_sigprocmask01 issue
Date: Thu, 12 Aug 2010 16:16:04 +0800 [thread overview]
Message-ID: <4C63ADC4.3030100@windriver.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 842 bytes --]
Hi,
In rt_sigprocmask01.c:
TEST(syscall(__NR_rt_sigpending, &oset,
SIGSETSIZE));
if (TEST_RETURN == -1) {
tst_brkm(TFAIL|TTERRNO, cleanup,
"rt_sigpending call failed");
}
TEST(sigismember(&oset, TEST_SIG));
if (TEST_RETURN == 0) {
tst_brkm(TFAIL|TTERRNO,
cleanup,
"sigismember call failed");
}
/* call rt_sigprocmask() to unblock
* signal#TEST_SIG */
TEST(syscall(__NR_rt_sigprocmask,
SIG_UNBLOCK, &set, &oset, 8));
on most of the arch,the SIGSETSIZE is 8, but it is 16 for mips, so in
sigprocmask,
the last parameter should be SIGSETSIZE too, not 8.
Regards,
Lina Zhao
[-- Attachment #2: rt_sigprocmask01-argument-change.patch --]
[-- Type: text/x-diff, Size: 1100 bytes --]
From 69be40baa594c10e5de553a2a60ba4875680c68c Mon Sep 17 00:00:00 2001
From: Lina Zhao <lina.zhao@windriver.com>
Date: Thu, 12 Aug 2010 15:45:10 +0800
Subject: [PATCH] On most of the arch,the SIGSETSIZE is 8,
but it is 16 for mips, so in sigprocmask, the last parameter
should be SIGSETSIZE too, not 8.
Signed-off-by: Lina Zhao <lina.zhao@windriver.com>
---
.../syscalls/rt_sigprocmask/rt_sigprocmask01.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c b/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c
index cc32ea8..e100561 100644
--- a/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c
+++ b/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c
@@ -210,7 +210,7 @@ int main(int ac, char **av) {
/* call rt_sigprocmask() to unblock
* signal#TEST_SIG */
TEST(syscall(__NR_rt_sigprocmask,
- SIG_UNBLOCK, &set, &oset, 8));
+ SIG_UNBLOCK, &set, &oset, SIGSETSIZE));
if (TEST_RETURN == -1) {
tst_brkm(TFAIL|TTERRNO,
cleanup,
--
1.6.3.1
[-- Attachment #3: Type: text/plain, Size: 224 bytes --]
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2010-08-12 8:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 8:16 lina.zhao [this message]
2010-08-13 6:13 ` [LTP] [patch]rt_sigprocmask01 issue Garrett Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C63ADC4.3030100@windriver.com \
--to=lina.zhao@windriver.com \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.