Skip to content

Commit 031d1f2

Browse files
Dev Jainctmarinas
authored andcommitted
kselftest/arm64: Fix redundancy of a testcase
Currently, we are writing the same value as we read into the TLS register, hence we cannot confirm update of the register, making the testcase "verify_tpidr_one" redundant. Fix this. Signed-off-by: Dev Jain <[email protected]> Reviewed-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] [[email protected]: remove the increment style change] Signed-off-by: Catalin Marinas <[email protected]>
1 parent d585951 commit 031d1f2

File tree

1 file changed

+1
-1
lines changed
  • tools/testing/selftests/arm64/abi

1 file changed

+1
-1
lines changed

tools/testing/selftests/arm64/abi/ptrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void test_tpidr(pid_t child)
4747

4848
/* ...write a new value.. */
4949
write_iov.iov_len = sizeof(uint64_t);
50-
write_val[0] = read_val[0]++;
50+
write_val[0] = read_val[0] + 1;
5151
ret = ptrace(PTRACE_SETREGSET, child, NT_ARM_TLS, &write_iov);
5252
ksft_test_result(ret == 0, "write_tpidr_one\n");
5353

0 commit comments

Comments
 (0)