Skip to contentSkip to conversation

futex_waitv04: Add test for futex_waitv syscall

PATCH zhaogongyi via ltp 2 participants 2 messages Apr 15, 2022 – Jun 6, 2022

lore
Share & tools
lore
#0 lore raw

Hi Cyril,

I also wondered whether to add these two testcases into futex_waitv01.c, there is a consideration that there are alse two other testcases need to be added according to linux manual:

1. A signal was sent to the sleeping task, returning -ERESTARTSYS.
2. Some futex at the list was woken, returning the index of some waked futex.

Best wishes!

Gongyi

Quoted 25 lines

Hi!

Quoted 7 lines
testcases/kernel/syscalls/futex/futex_waitv04.c new file +0 -0
new file mode 100644
index 000000000..783d481e9

testcases/kernel/syscalls/futex/futex_waitv04.c line 8

Quoted 8 lines
testcases/kernel/syscalls/futex/futex_waitv04.c new file +8 -0
@@ -0,0 +1,83 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (C) 2022 Zhao Gongyi <[email protected]>  */
+
+/*\
+ * [Description]
+ *
+ * This test verifies EAGIN and ETIMEDOUT for futex_waitv syscall.
                         ^
                         EAGAIN

Is there a reason why can't we add these two testcases into futex_waitv01.c?

--
Cyril Hrubis
[email protected]

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi!

Quoted 2 lines

I also wondered whether to add these two testcases into futex_waitv01.c, there is a consideration that there are alse two

Will you send a patch that adds these cases to the futext_waitv01.c then?

Quoted 3 lines

other testcases need to be added according to linux manual:
1. A signal was sent to the sleeping task, returning -ERESTARTSYS.
2. Some futex at the list was woken, returning the index of some waked futex.

Feel free to send more patches, adding more test coverage is always welcomed.

Signature · 5 lines
Cyril Hrubis
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp