The Samba-Bugzilla – Attachment 11968 Details for
Bug 11821
uid_wrapper-1.2.1 fails to compile on alpha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH 3/3] tests: Use alpha-specific syscalls.
0003-tests-Use-alpha-specific-syscalls.patch (text/plain), 1.68 KB, created by
Matt Turner
on 2016-04-05 20:46:55 UTC
(
hide
)
Description:
[PATCH 3/3] tests: Use alpha-specific syscalls.
Filename:
MIME Type:
Creator:
Matt Turner
Created:
2016-04-05 20:46:55 UTC
Size:
1.68 KB
patch
obsolete
>From a48d5827307edb93d2438ba2ca36e3360c21f0ff Mon Sep 17 00:00:00 2001 >From: Matt Turner <mattst88@gmail.com> >Date: Tue, 5 Apr 2016 13:28:56 -0700 >Subject: [PATCH 3/3] tests: Use alpha-specific syscalls. > >Signed-off-by: Matt Turner <mattst88@gmail.com> >--- > tests/test_syscall.c | 4 ++++ > tests/test_syscall_gid.c | 4 ++++ > tests/test_syscall_setuid.c | 4 ++++ > 3 files changed, 12 insertions(+) > >diff --git a/tests/test_syscall.c b/tests/test_syscall.c >index c43f1f9..912686f 100644 >--- a/tests/test_syscall.c >+++ b/tests/test_syscall.c >@@ -26,7 +26,11 @@ static void test_uwrap_syscall(void **state) > > (void) state; /* unused */ > >+#ifdef __alpha__ >+ rc = syscall(SYS_getxpid); >+#else > rc = syscall(SYS_getpid); >+#endif > assert_int_equal(rc, getpid()); > > ZERO_STRUCT(tv1); >diff --git a/tests/test_syscall_gid.c b/tests/test_syscall_gid.c >index 3ccdd4a..5664dc2 100644 >--- a/tests/test_syscall_gid.c >+++ b/tests/test_syscall_gid.c >@@ -33,7 +33,11 @@ static void test_uwrap_syscall_setgid(void **state) > > g = getgid(); > assert_int_equal(g, 1); >+#ifdef __alpha__ >+ assert_int_equal(g, syscall(SYS_getxgid)); >+#else > assert_int_equal(g, syscall(SYS_getgid)); >+#endif > } > > static void test_uwrap_syscall_setregid(void **state) >diff --git a/tests/test_syscall_setuid.c b/tests/test_syscall_setuid.c >index fbe9200..d237e27 100644 >--- a/tests/test_syscall_setuid.c >+++ b/tests/test_syscall_setuid.c >@@ -69,7 +69,11 @@ static void test_uwrap_syscall_setuid(void **state) > > u = getuid(); > assert_int_equal(u, 5555); >+#ifdef __alpha >+ assert_int_equal(u, syscall(SYS_getxuid)); >+#else > assert_int_equal(u, syscall(SYS_getuid)); >+#endif > > rc = syscall(SYS_setuid, 0); > assert_int_equal(rc, -1); >-- >2.7.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11821
:
11966
|
11967
| 11968