From: Wei Yongjun <yjwei@cn.fujitsu.com>
To: Subrata Modak <subrata@linux.vnet.ibm.com>,
ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH] fix the system call number of exit_group01
Date: Thu, 16 Jul 2009 08:37:29 +0800 [thread overview]
Message-ID: <4A5E7649.9040705@cn.fujitsu.com> (raw)
The system call number is depend on the system architecture, not
always 252. This patch fixed the problem.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
--- a/testcases/kernel/syscalls/exit_group/exit_group01.c 2009-05-22 02:14:40.000000000 +0800
+++ b/testcases/kernel/syscalls/exit_group/exit_group01.c 2009-07-15 09:26:23.000000000 +0800
@@ -136,7 +136,7 @@ int main(int ac, char **av) {
} else if (TEST_RETURN == 0){
tst_resm(TINFO, "In the child process");
sleep(5);
- TEST(syscall(252,4));
+ TEST(syscall(__NR_exit_group,4));
}else {
tst_resm(TINFO,"in the parent process");
TEST(w = wait(&status));
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2009-07-16 0:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-16 0:37 Wei Yongjun [this message]
2009-07-19 4:47 ` [LTP] [PATCH] fix the system call number of exit_group01 Garrett Cooper
2009-07-19 5:22 ` Mike Frysinger
2009-07-19 5:35 ` 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=4A5E7649.9040705@cn.fujitsu.com \
--to=yjwei@cn.fujitsu.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=subrata@linux.vnet.ibm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox