Skip to content

Commit 40c6d1b

Browse files
committed
Merge tag 'linux-kselftest-4.13-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest fixes from Shuah Khan: "This update consists of important compile and run-time error fixes to timers/freq-step, kmod, and sysctl tests" * tag 'linux-kselftest-4.13-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests: timers: freq-step: fix compile error selftests: futex: fix run_tests target test_sysctl: fix sysctl.sh by making it executable test_kmod: fix kmod.sh by making it executable
2 parents fcd0735 + 622b2fb commit 40c6d1b

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎tools/testing/selftests/futex/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ all:
1414
done
1515

1616
override define RUN_TESTS
17-
@if [ `dirname $(OUTPUT)` = $(PWD) ]; then ./run.sh; fi
17+
$(OUTPUT)/run.sh
1818
endef
1919

2020
override define INSTALL_RULE

‎tools/testing/selftests/kmod/kmod.sh‎

100644100755
File mode changed.

‎tools/testing/selftests/sysctl/sysctl.sh‎

100644100755
File mode changed.

‎tools/testing/selftests/timers/freq-step.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,9 @@ static void init_test(void)
229229
printf("CLOCK_MONOTONIC_RAW+CLOCK_MONOTONIC precision: %.0f ns\t\t",
230230
1e9 * precision);
231231

232-
if (precision > MAX_PRECISION) {
233-
printf("[SKIP]\n");
234-
ksft_exit_skip();
235-
}
232+
if (precision > MAX_PRECISION)
233+
ksft_exit_skip("precision: %.0f ns > MAX_PRECISION: %.0f ns\n",
234+
1e9 * precision, 1e9 * MAX_PRECISION);
236235

237236
printf("[OK]\n");
238237
srand(ts.tv_sec ^ ts.tv_nsec);

0 commit comments

Comments
 (0)