Skip to contentSkip to conversation

syscalls/timer*: use linux git tags for timer testcases

PATCH New Yang Xu 2 participants 2 messages Jan 21, 2020

lore
Share & tools
lore

Yang Xu

author
#0 lore raw

PATCH 1/1 syscalls/timer*: use linux git tags for timer testcases

I test these three cases(timer_delete01.c, timer_settime01.c, timer_settime02.c) on arm machines, they will get unknown 524 error like timer_create01.c. They are also regresstion test, so add linux tags about this error.

---
 testcases/kernel/syscalls/timer_delete/timer_delete01.c   | 7 +++++++
 testcases/kernel/syscalls/timer_settime/timer_settime01.c | 7 +++++++
 testcases/kernel/syscalls/timer_settime/timer_settime02.c | 7 +++++++
 3 files changed, 21 insertions(+)
testcases/kernel/syscalls/timer_delete/timer_delete01.c +7 -0
index 962eb5670..6e5fc9940 100644
@@ -12,6 +12,9 @@
  *
  *	Creates a timer for each available clock and then tries
  *	to delete them again.
+ *
+ * This is also regression test for commit:
+ * f18ddc13af98 ("alarmtimer: Use EOPNOTSUPP instead of ENOTSUPP")
  */
 
 #include <errno.h>
@@ -60,4 +63,8 @@ static void run(void)
 static struct tst_test test = {
 	.test_all = run,
 	.needs_root = 1,
+	.tags = (const struct tst_tag[]) {
+		{"linux-git", "f18ddc13af98"},
+		{}
+	}
 };
testcases/kernel/syscalls/timer_settime/timer_settime01.c +7 -0
index 7bf00f527..da365d221 100644
@@ -16,6 +16,9 @@
  * 4) Using absolute time
  *
  * All of these tests are supposed to be successful.
+ *
+ * This is also regression test for commit:
+ * f18ddc13af98 ("alarmtimer: Use EOPNOTSUPP instead of ENOTSUPP")
  */
 
 #include <stdlib.h>
@@ -121,4 +124,8 @@ static struct tst_test test = {
 	.needs_root = 1,
 	.tcnt = ARRAY_SIZE(tcases),
 	.setup = setup,
+	.tags = (const struct tst_tag[]) {
+		{"linux-git", "f18ddc13af98"},
+		{}
+	}
 };
testcases/kernel/syscalls/timer_settime/timer_settime02.c +7 -0
index 74cb33d73..bcabb7695 100644
@@ -18,6 +18,9 @@
  * 4) Passing an invalid timer -> EINVAL
  * 5) Passing an invalid address for new_value -> EFAULT
  * 6) Passing an invalid address for old_value -> EFAULT
+ *
+ * This is also regression test for commit:
+ * f18ddc13af98 ("alarmtimer: Use EOPNOTSUPP instead of ENOTSUPP")
  */
 
 #include <errno.h>
@@ -116,4 +119,8 @@ static struct tst_test test = {
 	.test = run,
 	.needs_root = 1,
 	.tcnt = ARRAY_SIZE(tcases),
+	.tags = (const struct tst_tag[]) {
+		{"linux-git", "f18ddc13af98"},
+		{}
+	}
 };
Signature · 1 line
2.18.0
#1 lore raw

PATCH 1/1 syscalls/timer*: use linux git tags for timer testcases

Hi Xu,

Quoted 3 lines

I test these three cases(timer_delete01.c, timer_settime01.c, timer_settime02.c) on arm machines, they will get unknown 524 error like timer_create01.c. They are also regresstion test, so add linux tags about this error.

Merged, with slightly modified commit message.
Thank you!

Kind regards,
Petr