All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] sched_getscheduler01.c: fix error of wrong return code
@ 2011-01-27  9:52 Peng Haitao
  2011-01-27 10:58 ` Garrett Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Haitao @ 2011-01-27  9:52 UTC (permalink / raw)
  To: Garrett Cooper; +Cc: ltp-list

Hi Garrett,

"return -1" should be replaced with "tst_exit()".

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

---
 .../sched_getscheduler/sched_getscheduler01.c      |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/syscalls/sched_getscheduler/sched_getscheduler01.c b/testcases/kernel/syscalls/sched_getscheduler/sched_getscheduler01.c
index 495ed44..3e938ee 100644
--- a/testcases/kernel/syscalls/sched_getscheduler/sched_getscheduler01.c
+++ b/testcases/kernel/syscalls/sched_getscheduler/sched_getscheduler01.c
@@ -125,7 +125,7 @@ int main(int ac, char **av)
 	}
 	cleanup();
 
-	return -1;
+	tst_exit();
  }
 
 /*
@@ -155,4 +155,4 @@ void cleanup()
 	 */
 	TEST_CLEANUP;
 
-}
\ No newline at end of file
+}
-- 
1.7.0.1


-- 
Best Regards,
Peng Haitao


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH] sched_getscheduler01.c: fix error of wrong return code
  2011-01-27  9:52 [LTP] [PATCH] sched_getscheduler01.c: fix error of wrong return code Peng Haitao
@ 2011-01-27 10:58 ` Garrett Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Garrett Cooper @ 2011-01-27 10:58 UTC (permalink / raw)
  To: Peng Haitao; +Cc: ltp-list

On Thu, Jan 27, 2011 at 1:52 AM, Peng Haitao <penght@cn.fujitsu.com> wrote:
> Hi Garrett,
>
> "return -1" should be replaced with "tst_exit()".

Committed -- thanks!
-Garrett

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-27 10:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-27  9:52 [LTP] [PATCH] sched_getscheduler01.c: fix error of wrong return code Peng Haitao
2011-01-27 10:58 ` Garrett Cooper

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.