Fix test on AArch64.
OBS-URL: https://build.opensuse.org/package/show/devel:tools/uid_wrapper?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
79e6f4307b
commit
c329c9ec71
36
uid_wrapper-1.0.2-fix_aarch64.patch
Normal file
36
uid_wrapper-1.0.2-fix_aarch64.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
commit 1122f2a1046892100e9157fbfc91178685127a89
|
||||
Author: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
|
||||
AuthorDate: Mon Aug 4 11:56:50 2014 +0200
|
||||
Commit: Andreas Schneider <asn@samba.org>
|
||||
CommitDate: Wed Aug 6 12:28:01 2014 +0200
|
||||
|
||||
tests: Remove test with legacy "access" system call.
|
||||
|
||||
AArch64 architecture does not implement legacy system calls and as a
|
||||
result SYS_access is not defined (as it got replaced with "accessat"
|
||||
syscall).
|
||||
|
||||
Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
|
||||
Reviewed-by: Andreas Schneider <asn@samba.org>
|
||||
Reviewed-by: Michael Adam <obnox@samba.org>
|
||||
---
|
||||
tests/testsuite.c | 6 ------
|
||||
1 file changed, 6 deletions(-)
|
||||
|
||||
diff --git a/tests/testsuite.c b/tests/testsuite.c
|
||||
index 828cb42..c88b051 100644
|
||||
--- a/tests/testsuite.c
|
||||
+++ b/tests/testsuite.c
|
||||
@@ -195,12 +195,6 @@ static void test_uwrap_syscall(void **state)
|
||||
rc = syscall(SYS_getpid);
|
||||
assert_int_equal(rc, getpid());
|
||||
|
||||
- rc = access(".", R_OK);
|
||||
- assert_int_equal(rc, 0);
|
||||
-
|
||||
- rc = syscall(SYS_access, ".", R_OK);
|
||||
- assert_int_equal(rc, 0);
|
||||
-
|
||||
ZERO_STRUCT(tv1);
|
||||
ZERO_STRUCT(tv2);
|
||||
ZERO_STRUCT(tz1);
|
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 6 08:50:39 UTC 2014 - asn@cryptomilk.org
|
||||
|
||||
- Fix test on AArch64.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 31 07:43:35 UTC 2014 - asn@cryptomilk.org
|
||||
|
||||
|
@@ -26,6 +26,7 @@ Group: Development/Libraries/C and C++
|
||||
Url: http://cwrap.org/
|
||||
|
||||
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
|
||||
Patch0: uid_wrapper-1.0.2-fix_aarch64.patch
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: libcmocka-devel
|
||||
@@ -47,6 +48,8 @@ development/testing.
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%patch0 -p1 -b .uid_wrapper-1.0.2-fix_aarch64.patch
|
||||
|
||||
%build
|
||||
# CMAKE_SKIP_RPATH:BOOL=OFF is need to run the tests!
|
||||
%cmake \
|
||||
|
Reference in New Issue
Block a user