Skip to content

Commit 5e2b727

Browse files
committed
Check for 0 rather than 1
1 parent 5fb6e13 commit 5e2b727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

offload/unittests/OffloadAPI/common/Environment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const std::vector<TestEnvironment::Device> &TestEnvironment::getDevices() {
129129
}
130130
}
131131

132-
if (Devices.size() <= 1)
132+
if (Devices.size() == 0)
133133
errs() << "Warning: No devices found for OffloadAPI tests.\n";
134134

135135
return Devices;

0 commit comments

Comments
 (0)