zephyr/tests
Keith Packard 0b90fd5adf samples, tests, boards: Switch main return type from void to int
As both C and C++ standards require applications running under an OS to
return 'int', adapt that for Zephyr to align with those standard. This also
eliminates errors when building with clang when not using -ffreestanding,
and reduces the need for compiler flags to silence warnings for both clang
and gcc.

Most of these changes were automated using coccinelle with the following
script:

@@
@@
- void
+ int
main(...) {
	...
-	return;
+	return 0;
	...
}

Approximately 40 files had to be edited by hand as coccinelle was unable to
fix them.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-14 07:49:41 +09:00
..
application_development tests: code_relocation: Add additional test cases for library and genex 2023-01-17 18:08:37 +01:00
arch samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
benchmarks samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
bluetooth samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
boards samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
boot samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
bsim samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
cmake tests: add snippet test suite 2023-03-26 16:12:41 +02:00
crypto tests: remove intel adsp cavs platforms from filters 2023-04-06 18:51:56 +02:00
drivers samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
kernel samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
lib samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
misc samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
net tests: lwm2m: Add more tests to RD client 2023-04-12 17:44:37 +02:00
posix sys: util: migrate all files to DIV_ROUND_UP 2023-04-11 12:00:37 +02:00
subsys samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
unit tests: unit: util: test DIV_ROUND_UP 2023-04-11 12:00:37 +02:00
ztest tests: ztest: use more verbose testname 2023-04-05 10:27:28 +02:00
test_config.yaml twister: add support for levels and test configuration 2023-03-07 15:49:16 +01:00