diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-08-09 07:47:50 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-08-09 07:47:50 +0000 |
commit | 9b8c07d638de5beaa0f62891ff25ccee89a225a7 (patch) | |
tree | 039a162a72ece7287fe34b5cee7e4bc6e1b1f9fe /package/ltp-testsuite | |
parent | 3c31be684d0378b3ba6526dc83b66c367eb49713 (diff) | |
download | buildroot-novena-9b8c07d638de5beaa0f62891ff25ccee89a225a7.tar.gz buildroot-novena-9b8c07d638de5beaa0f62891ff25ccee89a225a7.zip |
some platforms (such as arm with 2.4.x kernel headers) lack
__NR_fremovexattr and thus need special case handling
Diffstat (limited to 'package/ltp-testsuite')
-rw-r--r-- | package/ltp-testsuite/ltp-testsuite.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/ltp-testsuite/ltp-testsuite.patch b/package/ltp-testsuite/ltp-testsuite.patch index 5605ccd58..3251d7ce6 100644 --- a/package/ltp-testsuite/ltp-testsuite.patch +++ b/package/ltp-testsuite/ltp-testsuite.patch @@ -120,3 +120,24 @@ diff -urN ltp-full-20050707-dist/testcases/kernel/syscalls/swapon/swapon02.c ltp static void setup(); static void cleanup(); static int setup01(); +--- ltp-full-20050707/testcases/kernel/fs/acls/acl_file_test.c.orig 2005-08-09 01:41:25.000000000 -0600 ++++ ltp-full-20050707/testcases/kernel/fs/acls/acl_file_test.c 2005-08-09 01:42:29.000000000 -0600 +@@ -52,12 +52,18 @@ + } + + //s = syscall(237, fd,tok); //fremovexattr ++#ifdef __NR_fremovexattr + s = syscall(__NR_fremovexattr, fd,tok); //fremovexattr + if (s == -1) { + printf ("User unable to remove extended attributes file %s !\n", argv[1]); + printf("errno = %i\n", errno); + rc = 1; + } ++#else ++ printf ("User unable to remove extended attributes file %s !\n", argv[1]); ++ printf("errno = %i\n", ENOSYS); ++ rc = 1; ++#endif + + close (fd); + return rc; |