[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ltp-list
Subject:    [LTP] [PATCHv2] get_robust_list01 returns "random" value when
From:       Daniel Gollub <dgollub () suse ! de>
Date:       2008-11-06 21:27:57
Message-ID: 200811062227.57960.dgollub () suse ! de
[Download RAW message or body]

Hi,

have to resend the patch - there was a double declaration in the previous one.

Signed-off-by: Daniel Gollub <dgollub@suse.de>

---
 testcases/kernel/syscalls/get_robust_list/get_robust_list01.c |   14 +++++-----
 1 file changed, 8 insertions(+), 6 deletions(-)

Index: ltp-full-20081031/testcases/kernel/syscalls/get_robust_list/get_robust_list01.c
===================================================================
--- ltp-full-20081031.orig/testcases/kernel/syscalls/get_robust_list/get_robust_list01.c
+++ ltp-full-20081031/testcases/kernel/syscalls/get_robust_list/get_robust_list01.c
@@ -49,6 +49,12 @@
 #include <sys/syscall.h>
 #include <sys/types.h>
 
+#include "test.h"
+#include "usctest.h"
+
+char *TCID = "get_robust_list01";    /* test program identifier.              */
+int TST_TOTAL = 5;                   /* total number of tests in this file.   */
+
 #ifdef __NR_get_robust_list
 
 struct robust_list {
@@ -61,14 +67,9 @@ struct robust_list_head {
     struct robust_list *list_op_pending;
 };
 
-#include "test.h"
-#include "usctest.h"
 
 extern int Tst_count;                /* counter for tst_xxx routines.         */
 
-char *TCID = "get_robust_list01";    /* test program identifier.              */
-int TST_TOTAL = 5;                   /* total number of tests in this file.   */
-
 int exp_enos[] = {ESRCH, EPERM, EFAULT, 0};
 
 void setup(void);
@@ -248,7 +249,8 @@ cleanup(void)
 
 int main()
 {
-	puts("get_robust_list: system call not available");
+	tst_resm(TCONF, "get_robust_list: system call not available");
+	tst_exit();
 }
 
 #endif



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic