Skip to contentSkip to conversation

float_bessel: fix error of infinite loop

PATCH In review Peng Haitao 2 participants 2 messages Jan 18, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 float_bessel: fix error of infinite loop

Hi Garrett,

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

---
 testcases/misc/math/float/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
testcases/misc/math/float/main.c +2 -2
index 18757e7..8998c33 100644
@@ -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
+}
Signature · 17 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw
Quoted 3 lines · Peng Haitao

Hi Garrett,

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

Committed -- thanks!
-Garrett

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list