linux/tools/testing/selftests/powerpc
Michael Ellerman 2bf66e66d2 selftests/powerpc: Fix argument order to timer_sub()
Commit c814bf9589 ("powerpc/selftests: Use timersub() for
gettimeofday()"), got the order of arguments to timersub() wrong,
leading to a negative time delta being reported, eg:

  test: gettimeofday
  tags: git_version:v6.12-rc5-409-gdddf291c3030
  time = -3.297781
  success: gettimeofday

The correct order is minuend, subtrahend, which in this case is end,
start. Which gives:

  test: gettimeofday
  tags: git_version:v6.12-rc5-409-gdddf291c3030-dirty
  time = 3.300650
  success: gettimeofday

Fixes: c814bf9589 ("powerpc/selftests: Use timersub() for gettimeofday()")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20241218114347.428108-1-mpe@ellerman.id.au
2025-01-11 10:39:45 +05:30
..
alignment selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
benchmarks selftests/powerpc: Fix argument order to timer_sub() 2025-01-11 10:39:45 +05:30
cache_shape selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
copyloops selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
dexcr selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
dscr selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
eeh selftests/powerpc: make sub-folders buildable on their own 2024-04-29 23:54:42 +10:00
include selftest/powerpc/ptrace: Cleanup duplicate macro definitions 2024-12-18 13:40:12 +05:30
lib selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
math selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
mce selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
mm selftests/powerpc: Remove the path after initialization. 2024-11-14 22:41:00 +11:00
nx-gzip selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
papr_attributes selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
papr_sysparm selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
papr_vpd selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
pmu selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
primitives selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
ptrace selftest/powerpc/ptrace: Cleanup duplicate macro definitions 2024-12-18 13:40:12 +05:30
scripts selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
security selftests/powerpc: Detect taint change in mitigation patching test 2024-11-07 22:36:31 +11:00
signal selftests/powerpc: Return errors from all tests 2024-11-07 22:36:31 +11:00
stringloops selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
switch_endian selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
syscalls selftests/powerpc: Give all tests 2 minutes timeout 2024-11-07 22:36:30 +11:00
tm selftests/powerpc: Return errors from all tests 2024-11-07 22:36:31 +11:00
vphn selftests/powerpc: Fix typo in test-vphn.c 2024-12-10 08:34:51 +05:30
Makefile selftests/powerpc: Install tests in sub-directories 2024-04-29 23:54:43 +10:00
flags.mk selftests/powerpc: Fix build with USERCFLAGS set 2024-07-06 22:10:14 +10:00
harness.c selftests/powerpc: add const qualification where possible 2023-08-18 17:03:15 +10:00
utils.c selftests/powerpc/dexcr: Add hashst/hashchk test 2023-06-19 17:36:28 +10:00