utimensat01 give a build error when __NR_utimensat is not set because test.h
is not included. It also gives a link error because TCID is not defined.
This patch fixes these issues.
Signed-off-by: Martin Habets <[EMAIL PROTECTED]>
Index: ltp-full-20080731/testcases/kernel/syscalls/utimensat/utimensat01.c
===================================================================
--- ltp-full-20080731.orig/testcases/kernel/syscalls/utimensat/utimensat01.c
2008-08-01 23:42:53.000000000 +0100
+++ ltp-full-20080731/testcases/kernel/syscalls/utimensat/utimensat01.c
2008-08-01 23:48:22.000000000 +0100
@@ -41,6 +41,7 @@
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
+#include <test.h>
#include "linux_syscall_numbers.h"
/* We use EXIT_FAILURE for an expected failure from utimensat()
@@ -274,6 +275,7 @@
}
#else
+char *TCID="utimensat01"; /* Test program identifier. */
int TST_TOTAL = 0; /* Total number of test cases. */
int main(){
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list