| 272 | |
| 273 | namespace { |
| 274 | void readFile(const std::string& filename, char* buf, int bufLength) |
| 275 | { |
| 276 | FILE* f = fopen(filename.c_str(), "r"); |
| 277 | if (f == nullptr) { |
| 278 | CPPUNIT_FAIL(strerror(errno)); |
| 279 | } |
| 280 | int retval = fread(buf, 1, bufLength, f); |
| 281 | fclose(f); |
| 282 | if (retval != bufLength) { |
| 283 | CPPUNIT_FAIL("return value is not 1"); |
| 284 | } |
| 285 | } |
| 286 | } // namespace |
| 287 | |
| 288 | void MultiDiskAdaptorTest::testWriteData() |
no outgoing calls
no test coverage detected