int main(void) { int nerrors; nerrors = ReadWriteTest(); nerrors += FfsTest(); if (0 == nerrors) { printf("PASS\n"); } return nerrors; }
int main(void) { TlclTest(); SendCommandTest(); ReadWriteTest(); PcrTest(); FlagsTest(); RandomTest(); return gTestSuccess ? 0 : 255; }
int TestCase_Core_File_File::Run(int argc, char *argv[]) { LLBC_PrintLine("Core/File test:"); int retCode = LLBC_FAILED; do { if (!FileModeDescTest()) break; if (!OpenCloseTest()) break; if (!GetXXXMethodsTest()) break; if (!ReadWriteTest()) break; if (!FileAttributeTest()) break; if (!CopyFileTest()) break; if (!MoveFileTest()) break; retCode = LLBC_OK; } while (0); LLBC_PrintLine("Press any key to continue..."); getchar(); return retCode; }
void BM_stdio_fwrite_unbuffered(benchmark::State& state) { ReadWriteTest(state, fwrite, false); }
void BM_stdio_fwrite(benchmark::State& state) { ReadWriteTest(state, fwrite, true); }
void BM_stdio_fread(benchmark::State& state) { ReadWriteTest(state, fread, true); }
void BM_stdio_fwrite_unbuffered::Run(int iters, int chunk_size) { ReadWriteTest(this, iters, chunk_size, fwrite, false); }
void BM_stdio_fwrite::Run(int iters, int chunk_size) { ReadWriteTest(this, iters, chunk_size, fwrite, true); }