Skip to content

Commit 1cbb91b

Browse files
committed
loader test: Extra output on layer enumeration
1 parent ca0d0d9 commit 1cbb91b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/tests/loader_test/loader_test.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void TestEnumLayers(uint32_t& total, uint32_t& passed, uint32_t& skipped, uint32
161161
local_failed++;
162162
} else {
163163
local_passed++;
164-
cout << "Passed" << endl;
164+
cout << "Passed: " << out_layer_value << " layers available." << endl;
165165
}
166166

167167
// If any implicit layers are found, try property return
@@ -181,6 +181,9 @@ void TestEnumLayers(uint32_t& total, uint32_t& passed, uint32_t& skipped, uint32
181181
} else {
182182
local_passed++;
183183
cout << "Passed" << endl;
184+
for (const auto& prop : layer_props) {
185+
cout << " - " << prop.layerName << endl;
186+
}
184187
}
185188
}
186189
num_before_explicit = out_layer_value;
@@ -204,8 +207,8 @@ void TestEnumLayers(uint32_t& total, uint32_t& passed, uint32_t& skipped, uint32
204207
local_failed++;
205208
} else {
206209
if (out_layer_value != num_before_explicit + num_valid_jsons) {
207-
cout << "Failed, expected count " << std::to_string(num_before_explicit + num_valid_jsons) << ", got "
208-
<< std::to_string(out_layer_value) << endl;
210+
cout << "Failed, expected count " << (num_before_explicit + num_valid_jsons) << " (" << num_before_explicit
211+
<< " seen earlier plus " << num_valid_jsons << " we added), got " << std::to_string(out_layer_value) << endl;
209212
local_failed++;
210213
} else {
211214
local_passed++;
@@ -268,6 +271,10 @@ void TestEnumLayers(uint32_t& total, uint32_t& passed, uint32_t& skipped, uint32
268271
cout << "Passed" << endl;
269272
local_passed++;
270273
}
274+
275+
for (const auto& prop : layer_props) {
276+
cout << " - " << prop.layerName << endl;
277+
}
271278
}
272279

273280
} catch (...) {

0 commit comments

Comments
 (0)