Lines Matching refs:aTests

393     } aTests[] =
406 for (uint32_t j = 0; j < RT_ELEMENTS(aTests); j++)
408 if (RT_FAILURE(aTests[j].rc))
420 if (aTests[j].fBlock)
427 AssertBreakStmt(cbLeft > PAGE_SIZE * 4, aTests[j].rc = rc = VERR_BUFFER_OVERFLOW);
433 rc = RTZipBlockCompress(aTests[j].enmType, aTests[j].enmLevel, 0 /*fFlags*/,
438 Error("RTZipBlockCompress failed for '%s' (#%u): %Rrc\n", aTests[j].pszName, j, rc);
439 aTests[j].rc = rc;
454 rc = RTZipCompCreate(&pZipComp, NULL, ComprOutCallback, aTests[j].enmType, aTests[j].enmLevel);
457 Error("Failed to create the compressor for '%s' (#%u): %Rrc\n", aTests[j].pszName, j, rc);
458 aTests[j].rc = rc;
469 Error("RTZipCompress failed for '%s' (#%u): %Rrc\n", aTests[j].pszName, j, rc);
470 aTests[j].rc = rc;
480 Error("RTZipCompFinish failed for '%s' (#%u): %Rrc\n", aTests[j].pszName, j, rc);
481 aTests[j].rc = rc;
487 aTests[j].cbCompr += g_cbCompr;
488 aTests[j].cNanoCompr += NanoTS;
494 if (aTests[j].fBlock)
505 rc = RTZipBlockDecompress(aTests[j].enmType, 0 /*fFlags*/,
510 Error("RTZipBlockDecompress failed for '%s' (#%u): %Rrc\n", aTests[j].pszName, j, rc);
511 aTests[j].rc = rc;
527 Error("Failed to create the decompressor for '%s' (#%u): %Rrc\n", aTests[j].pszName, j, rc);
528 aTests[j].rc = rc;
539 Error("RTZipDecompress failed for '%s' (#%u): %Rrc\n", aTests[j].pszName, j, rc);
540 aTests[j].rc = rc;
550 aTests[j].cNanoDecompr += NanoTS;
554 Error("The compressed data doesn't match the source for '%s' (%#u)\n", aTests[j].pszName, j);
555 aTests[j].rc = VERR_BAD_EXE_FORMAT;
571 for (uint32_t j = 0; j < RT_ELEMENTS(aTests); j++)
573 if (RT_SUCCESS(aTests[j].rc))
575 unsigned uComprSpeedIn = (unsigned)(cbTotalKB / (long double)aTests[j].cNanoCompr * 1000000000.0);
576 unsigned uComprSpeedOut = (unsigned)(aTests[j].cbCompr / (long double)aTests[j].cNanoCompr * 1000000000.0 / 1024);
577 unsigned uRatio = (unsigned)(aTests[j].cbCompr / cIterations * 100 / g_cbPages);
578 unsigned uDecomprSpeedIn = (unsigned)(aTests[j].cbCompr / (long double)aTests[j].cNanoDecompr * 1000000000.0 / 1024);
579 unsigned uDecomprSpeedOut = (unsigned)(cbTotalKB / (long double)aTests[j].cNanoDecompr * 1000000000.0);
581 aTests[j].pszName,
582 uComprSpeedIn, uComprSpeedOut, uRatio, aTests[j].cbCompr / cIterations,
586 aTests[j].cNanoCompr / cIterations,
587 aTests[j].cNanoDecompr / cIterations);
594 RTPrintf("%-20s: %Rrc\n", aTests[j].pszName, aTests[j].rc);