Skip to contentSkip to conversation

exit_group01: fix error of using wrong TEST_RETURN

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 exit_group01: fix error of using wrong TEST_RETURN

Hi Garrett,

"TEST_RETURN" should be replaced with "cpid".

---
 .../kernel/syscalls/exit_group/exit_group01.c      |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
testcases/kernel/syscalls/exit_group/exit_group01.c +2 -2
index 9280f0a..d7454b2 100644
@@ -113,7 +113,7 @@ int main(int ac, char **av) {
 	cpid = fork();     //call exit_group()
 	if (cpid == -1) {
         	tst_brkm(TFAIL|TERRNO, cleanup, "fork failed");
-	} else if (TEST_RETURN == 0) {
+	} else if (cpid == 0) {
 		sleep(5);
 		TEST(syscall(__NR_exit_group,4));
 	} else {
@@ -129,4 +129,4 @@ int main(int ac, char **av) {
         }
 	cleanup();
         tst_exit();
-}
\ No newline at end of file
+}
Signature · 17 lines
1.7.3.1

-- 
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,

"TEST_RETURN" should be replaced with "cpid".

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