public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Peng Haitao <penght@cn.fujitsu.com>
To: Garrett Cooper <yanegomi@gmail.com>
Cc: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH] cleanup() should not be called before setup() in cases dup3_01 and eventfd2_01
Date: Mon, 14 Feb 2011 10:20:28 +0800	[thread overview]
Message-ID: <4D58916C.6010800@cn.fujitsu.com> (raw)

Hi Garrett,

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>

---
 testcases/kernel/syscalls/dup3/dup3_01.c         |    4 ++--
 testcases/kernel/syscalls/eventfd2/eventfd2_01.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/testcases/kernel/syscalls/dup3/dup3_01.c b/testcases/kernel/syscalls/dup3/dup3_01.c
index c95e79a..a0f1d63 100644
--- a/testcases/kernel/syscalls/dup3/dup3_01.c
+++ b/testcases/kernel/syscalls/dup3/dup3_01.c
@@ -126,7 +126,7 @@ int main(int argc, char *argv[])
 	int fd, coe;
 
 	if ((tst_kvercmp(2, 6, 27)) < 0)
-		tst_brkm(TCONF, cleanup,
+		tst_brkm(TCONF, NULL,
 			 "This test can only run on kernels that are 2.6.27 and higher");
 	setup();
 
@@ -161,4 +161,4 @@ int main(int argc, char *argv[])
 
 	cleanup();
 	tst_exit();
-}
\ No newline at end of file
+}
diff --git a/testcases/kernel/syscalls/eventfd2/eventfd2_01.c b/testcases/kernel/syscalls/eventfd2/eventfd2_01.c
index 38f2ed0..0e87e85 100644
--- a/testcases/kernel/syscalls/eventfd2/eventfd2_01.c
+++ b/testcases/kernel/syscalls/eventfd2/eventfd2_01.c
@@ -133,7 +133,7 @@ int main(int argc, char *argv[])
 	int fd, coe;
 
 	if ((tst_kvercmp(2, 6, 27)) < 0) {
-		tst_brkm(TCONF, cleanup,
+		tst_brkm(TCONF, NULL,
 		    "This test can only run on kernels that are 2.6.27 and higher");
 	}
 	setup();
@@ -167,4 +167,4 @@ int main(int argc, char *argv[])
 	tst_resm(TPASS, "eventfd2(EFD_CLOEXEC) Passed");
 	cleanup();
 	tst_exit();
-}
\ No newline at end of file
+}
-- 
1.7.3.1

-- 
Best Regards,
Peng Haitao


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

             reply	other threads:[~2011-02-14  2:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-14  2:20 Peng Haitao [this message]
2011-02-14  2:26 ` [LTP] [PATCH] cleanup() should not be called before setup() in cases dup3_01 and eventfd2_01 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=4D58916C.6010800@cn.fujitsu.com \
    --to=penght@cn.fujitsu.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=yanegomi@gmail.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