Skip to contentSkip to conversation

Skip additional reserved signals in Android.

PATCH New Kenneth Magic 2 participants 2 messages Aug 28, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Skip additional reserved signals in Android.

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

---
 testcases/kernel/syscalls/sighold/sighold02.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
(quoted diff) +0 -0

b/testcases/kernel/syscalls/sighold/sighold02.c
index 8df5fa7db..fdd0e736d 100644

testcases/kernel/syscalls/sighold/sighold02.c +10 -0
@@ -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;
Signature · 4 lines
2.19.0.rc0.228.g281dcd1b4d0-goog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20180828/8ceb5293/attachment.html>
Applied
#1 lore raw

PATCH 1/1 Skip additional reserved signals in Android.

Hi Kenneth,

Quoted 4 lines

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

Merged, thanks!

Kind regards,
Petr