Adding fix for unsufficient devices / better logging for skipped tests (#63)

Этот коммит содержится в:
gilbertlee-amd
2019-05-21 14:34:20 -06:00
коммит произвёл GitHub
родитель afa945d6e6
Коммит a115f577dd
+6 -1
Просмотреть файл
@@ -173,8 +173,13 @@ namespace CorrectnessTests
// Only proceed with testing if there are enough GPUs
if (numDevices > numDevicesAvailable)
{
fprintf(stdout, "Skipping test requring %d devices (only %d available)\n",
fprintf(stdout, "[ SKIPPED ] Test requires %d devices (only %d available)\n",
numDevices, numDevicesAvailable);
// Modify the number of devices so that tear-down doesn't occur
// This is temporary until GTEST_SKIP() becomes available
numDevices = 0;
numDevicesAvailable = -1;
return;
}