Skip to content

Commit 7d50e00

Browse files
edliawshuahkh
authored andcommitted
selftests/futex: futex_waitv wouldblock test should fail
Testcase should fail if -EWOULDBLOCK is not returned when expected value differs from actual value from the waiter. Link: https://lore.kernel.org/r/[email protected] Fixes: 9d57f7c ("selftests: futex: Test sys_futex_waitv() wouldblock") Signed-off-by: Edward Liaw <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Reviewed-by: André Almeida <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 170ec11 commit 7d50e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/futex/functional/futex_wait_wouldblock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ int main(int argc, char *argv[])
9898
info("Calling futex_waitv on f1: %u @ %p with val=%u\n", f1, &f1, f1+1);
9999
res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC);
100100
if (!res || errno != EWOULDBLOCK) {
101-
ksft_test_result_pass("futex_waitv returned: %d %s\n",
101+
ksft_test_result_fail("futex_waitv returned: %d %s\n",
102102
res ? errno : res,
103103
res ? strerror(errno) : "");
104104
ret = RET_FAIL;

0 commit comments

Comments
 (0)