Function report |
Source Code:lib\test_hexdump.c |
Create Date:2022-07-28 06:26:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:test_hexdump_init
Proto:static int __init test_hexdump_init(void)
Type:int
Parameter:Nothing
| 226 | rowsize = ( get_random_int() % 2 + 1) * 16 |
| 227 | When i < 16 cycle test_hexdump_set(rowsize, false) |
| 230 | rowsize = ( get_random_int() % 2 + 1) * 16 |
| 231 | When i < 16 cycle test_hexdump_set(rowsize, true) |
| 234 | When i <= TEST_HEXDUMP_BUF_SIZE cycle test_hexdump_overflow_set(i, false) |
| 237 | When i <= TEST_HEXDUMP_BUF_SIZE cycle test_hexdump_overflow_set(i, true) |
| 240 | If failed_tests == 0 Then pr_info("all %u tests passed\n", total_tests) |
| 242 | Else pr_err("failed %u out of %u tests\n", failed_tests, total_tests) |
| 245 | Return If failed_tests Then -EINVAL Else 0 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |