aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDev Jain <[email protected]>2024-06-05 17:24:48 +0530
committerCatalin Marinas <[email protected]>2024-06-12 16:00:27 +0100
commit031d1f20d5db496a4fc980a59a7c6de83b8a5a76 (patch)
tree5d429f41da7f1131acd5701460f3adf4146c5294
parentd5859510d35d8e7d63fed5169f1775317f40fb03 (diff)
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]>
-rw-r--r--tools/testing/selftests/arm64/abi/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/arm64/abi/ptrace.c b/tools/testing/selftests/arm64/abi/ptrace.c
index abe4d58d731d..4c941270d8de 100644
--- a/tools/testing/selftests/arm64/abi/ptrace.c
+++ b/tools/testing/selftests/arm64/abi/ptrace.c
@@ -47,7 +47,7 @@ static void test_tpidr(pid_t child)
/* ...write a new value.. */
write_iov.iov_len = sizeof(uint64_t);
- write_val[0] = read_val[0]++;
+ write_val[0] = read_val[0] + 1;
ret = ptrace(PTRACE_SETREGSET, child, NT_ARM_TLS, &write_iov);
ksft_test_result(ret == 0, "write_tpidr_one\n");