Skip additional reserved signals in Android.
diff mbox series

Message ID CABHszYvs7e3WveuV+_X5H6APfQHmnn6=MgwfHD8rSLGDQajVOA@mail.gmail.com
State Accepted
Delegated to: Petr Vorel
Headers show
Series
  • Skip additional reserved signals in Android.
Related show

Commit Message

Kenneth Magic Aug. 28, 2018, 6:21 p.m. UTC
In Android's bionic libc, two additional signals are reserved
and need to be skipped in the test.

Signed-off-by: Kenneth Magic <kmagic@google.com>
---
 testcases/kernel/syscalls/sighold/sighold02.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Petr Vorel Aug. 28, 2018, 9:07 p.m. UTC | #1
Hi Kenneth,

> In Android's bionic libc, two additional signals are reserved
> and need to be skipped in the test.

> Signed-off-by: Kenneth Magic <kmagic@google.com>

Merged, thanks!


Kind regards,
Petr

Patch
diff mbox series

diff --git a/testcases/kernel/syscalls/sighold/sighold02.c
b/testcases/kernel/syscalls/sighold/sighold02.c
index 8df5fa7db..fdd0e736d 100644
--- a/testcases/kernel/syscalls/sighold/sighold02.c
+++ b/testcases/kernel/syscalls/sighold/sighold02.c
@@ -59,6 +59,12 @@ 
 #define SIGCANCEL 32
 #define SIGTIMER 33

+/* Reserved in Android's bionic libc */
+#ifdef __ANDROID__
+# define SIGLIBCORE 34
+# define SIGDEBUGGERD 35
+#endif
+
 /* ensure NUMSIGS is defined */
 #ifndef NUMSIGS
 # define NUMSIGS NSIG
@@ -84,6 +90,10 @@  static int skip_sig(int sig)
  case SIGSTOP:
  case SIGCANCEL:
  case SIGTIMER:
+#ifdef __ANDROID__
+ case SIGLIBCORE:
+ case SIGDEBUGGERD:
+#endif
  return 1;
  default:
  return 0;