Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loader test changes #147

Merged
merged 2 commits into from Dec 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/tests/loader_test/loader_test.cpp
Expand Up @@ -161,7 +161,7 @@ void TestEnumLayers(uint32_t& total, uint32_t& passed, uint32_t& skipped, uint32
local_failed++;
} else {
local_passed++;
cout << "Passed" << endl;
cout << "Passed: " << out_layer_value << " layers available." << endl;
}

// If any implicit layers are found, try property return
Expand All @@ -178,6 +178,12 @@ void TestEnumLayers(uint32_t& total, uint32_t& passed, uint32_t& skipped, uint32
if (XR_FAILED(test_result)) {
cout << "Failed with return " << std::to_string(test_result) << endl;
local_failed++;
} else {
local_passed++;
cout << "Passed" << endl;
for (const auto& prop : layer_props) {
cout << " - " << prop.layerName << endl;
}
}
}
num_before_explicit = out_layer_value;
Expand All @@ -201,8 +207,8 @@ void TestEnumLayers(uint32_t& total, uint32_t& passed, uint32_t& skipped, uint32
local_failed++;
} else {
if (out_layer_value != num_before_explicit + num_valid_jsons) {
cout << "Failed, expected count " << std::to_string(num_before_explicit + num_valid_jsons) << ", got "
<< std::to_string(out_layer_value) << endl;
cout << "Failed, expected count " << (num_before_explicit + num_valid_jsons) << " (" << num_before_explicit
<< " seen earlier plus " << num_valid_jsons << " we added), got " << std::to_string(out_layer_value) << endl;
local_failed++;
} else {
local_passed++;
Expand Down Expand Up @@ -265,6 +271,10 @@ void TestEnumLayers(uint32_t& total, uint32_t& passed, uint32_t& skipped, uint32
cout << "Passed" << endl;
local_passed++;
}

for (const auto& prop : layer_props) {
cout << " - " << prop.layerName << endl;
}
}

} catch (...) {
Expand Down