Skip to content

Commit 046e658

Browse files
Correct settings tests when no devices are present
1 parent c3394a6 commit 046e658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/loader_settings_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3302,7 +3302,7 @@ TEST(SettingsFile, MissingDriverConfiguration) {
33023302

33033303
InstWrapper inst{env.vulkan_functions};
33043304
inst.CheckCreate();
3305-
auto pd = inst.GetPhysDev();
3305+
inst.GetPhysDev(VK_ERROR_INITIALIZATION_FAILED);
33063306
}
33073307

33083308
// Three drivers, second on has the matching UUID in the settings file.
@@ -3433,7 +3433,7 @@ TEST(SettingsFile, InvalidDriverConfigurations) {
34333433

34343434
InstWrapper inst{env.vulkan_functions};
34353435
inst.CheckCreate();
3436-
auto pd = inst.GetPhysDev();
3436+
auto pd = inst.GetPhysDev(VK_ERROR_INITIALIZATION_FAILED);
34373437
}
34383438

34393439
TEST(SettingsFile, DeviceConfigurationReordersAdditionalDrivers) {

0 commit comments

Comments
 (0)