All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peng Haitao <penght@cn.fujitsu.com>
To: yanegomi@gmail.com, ltp-list@lists.sourceforge.net
Subject: [LTP]  [PATCH] float_bessel: fix error of infinite loop
Date: Tue, 18 Jan 2011 15:51:09 +0800	[thread overview]
Message-ID: <4D35466D.60000@cn.fujitsu.com> (raw)

Hi Garrett,

exit() should be modified to tst_exit() in function myexit().

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
---
 testcases/misc/math/float/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/misc/math/float/main.c b/testcases/misc/math/float/main.c
index 18757e7..8998c33 100644
--- a/testcases/misc/math/float/main.c
+++ b/testcases/misc/math/float/main.c
@@ -42,7 +42,7 @@ myexit (int x)
 		tst_resm (TFAIL, "Test failed");
 	else
 		tst_resm (TPASS, "Test passed");
-	exit(0);
+	tst_exit();
 }
 
 TH_DATA *pcom;
@@ -428,4 +428,4 @@ static void sys_error(const char *msg, int line)
 
 	sprintf(syserr_msg, "%s: %s", msg, strerror(errno));
 	error(syserr_msg, line);
-}
\ No newline at end of file
+}
-- 
1.7.0.4

-- 
Best Regards,
Peng Haitao


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

             reply	other threads:[~2011-01-18  7:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-18  7:51 Peng Haitao [this message]
2011-01-18  8:16 ` [LTP] [PATCH] float_bessel: fix error of infinite loop 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=4D35466D.60000@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 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.