History

kcsan: Make test follow KUnit style recommendations

Per recently added KUnit style recommendations at Documentation/dev-tools/kunit/style.rst, make the following changes to the KCSAN test: 1. Rename 'kcsan-test.c' to 'kcsan_test.c'. 2. Rename suite name 'kcsan-test' to 'kcsan'. 3. Rename CONFIG_KCSAN_TEST to CONFIG_KCSAN_KUNIT_TEST and default to KUNIT_ALL_TESTS.

Marco Elver committed 5 years ago

Commit a146fed1 parent e36299e3 files · +6 −5Browse files

Showing the changes to kernel (2 of 3 files). Show all

Unified · Split

2 files
  1. kernel/kcsan/Makefile +2 −2
  2. kernel/kcsan/kcsan_test.c +1 −1
kernel/kcsan/Makefile+2−2
@@ -13,5 +13,5 @@ CFLAGS_core.o := $(call cc-option,-fno-conserve-stack) \ · 12 unmodified lines
1313 obj-y := core.o debugfs.o report.o
1414 obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o
1515
16−CFLAGS_kcsan-test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer
17−obj-$(CONFIG_KCSAN_TEST) += kcsan-test.o
16+CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer
17+obj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o
kernel/kcsan/kcsan_test.crenamed from kernel/kcsan/kcsan-test.c+1−1
@@ -1156,7 +1156,7 @@ static void test_exit(struct kunit *test) · 1155 unmodified lines
11561156 }
11571157
11581158 static struct kunit_suite kcsan_test_suite = {
1159− .name = "kcsan-test",
1159+ .name = "kcsan",
11601160 .test_cases = kcsan_test_cases,
11611161 .init = test_init,
11621162 .exit = test_exit,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t