* Re: [PATCH] lib/tests: add KUnit test for argv_split()
[not found] <20260203-kunit-argv_split-v1-1-0d3545314a41@gmail.com>
@ 2026-02-02 22:42 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-02 22:42 UTC (permalink / raw)
To: Ryota Sakamoto, Andrew Morton
Cc: oe-kbuild-all, Linux Memory Management List, linux-kernel,
Ryota Sakamoto
Hi Ryota,
kernel test robot noticed the following build errors:
[auto build test ERROR on 18f7fcd5e69a04df57b563360b88be72471d6b62]
url: https://github.com/intel-lab-lkp/linux/commits/Ryota-Sakamoto/lib-tests-add-KUnit-test-for-argv_split/20260203-004209
base: 18f7fcd5e69a04df57b563360b88be72471d6b62
patch link: https://lore.kernel.org/r/20260203-kunit-argv_split-v1-1-0d3545314a41%40gmail.com
patch subject: [PATCH] lib/tests: add KUnit test for argv_split()
config: sparc-randconfig-001-20260203 (https://download.01.org/0day-ci/archive/20260203/202602030650.7n64kb2g-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260203/202602030650.7n64kb2g-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602030650.7n64kb2g-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
>> lib/tests/argv_split_kunit.c:55:3: warning: braces around scalar initializer
.argv = {},
^
lib/tests/argv_split_kunit.c:55:3: note: (near initialization for 'argv_split_cases[5].argv')
>> lib/tests/argv_split_kunit.c:55:11: error: empty scalar initializer
.argv = {},
^
lib/tests/argv_split_kunit.c:55:11: note: (near initialization for 'argv_split_cases[5].argv')
vim +55 lib/tests/argv_split_kunit.c
19
20 static struct argv_split_test_case argv_split_cases[] = {
21 {
22 .str = "basic words",
23 .input = "foo bar",
24 .argc = 2,
25 .argv = (const char *[]){ "foo", "bar" },
26 },
27 {
28 .str = "single word",
29 .input = "foobar",
30 .argc = 1,
31 .argv = (const char *[]){ "foobar" },
32 },
33 {
34 .str = "leading/trailing whitespace",
35 .input = " hello world ",
36 .argc = 2,
37 .argv = (const char *[]){ "hello", "world" },
38 },
39 {
40 .str = "mixing space",
41 .input = " \t foo \n bar baz",
42 .argc = 3,
43 .argv = (const char *[]){ "foo", "bar", "baz" },
44 },
45 {
46 .str = "quotes are treated as literals",
47 .input = "ls \"my file/\"",
48 .argc = 3,
49 .argv = (const char *[]){ "ls", "\"my", "file/\"" },
50 },
51 {
52 .str = "empty",
53 .input = "",
54 .argc = 0,
> 55 .argv = {},
56 },
57 };
58
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-02-02 22:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20260203-kunit-argv_split-v1-1-0d3545314a41@gmail.com>
2026-02-02 22:42 ` [PATCH] lib/tests: add KUnit test for argv_split() kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox