| 28 | "mallctl() should return EINVAL for output size mismatch"); |
| 29 | } |
| 30 | TEST_END |
| 31 | |
| 32 | TEST_BEGIN(test_mallctlnametomib_errors) { |
| 33 | size_t mib[1]; |
| 34 | size_t miblen; |
| 35 | |
| 36 | miblen = sizeof(mib)/sizeof(size_t); |
| 37 | assert_d_eq(mallctlnametomib("no_such_name", mib, &miblen), ENOENT, |
| 38 | "mallctlnametomib() should return ENOENT for non-existent names"); |
| 39 | } |
| 40 | TEST_END |
| 41 | |
| 42 | TEST_BEGIN(test_mallctlbymib_errors) { |
nothing calls this directly
no test coverage detected