RUNTIME: a failed submission's resource summary reads apart from its list
The lavapipe line read "0 keys of the runtime's own: buffer #1 ...", as if the stated resources were the runtime's own. The summary now ends "and N keys of the runtime's own not stated", and the stated resources follow after "; stated: ". The unit test's expected text follows; run in the next Linux job.
This commit is contained in:
1 parent
19ead6a74a
commit
34e3407522
2 files changed
+6
-5
No files matched your search
@@ -514,8 +514,8 @@ impl Report {
|
||||
let resources = &self.carried.resources;
|
||||
let _ = write!(
|
||||
line,
|
||||
"; resources: {} stated, {} gone, {} detached or released; {} key{} of the runtime's \
|
||||
own",
|
||||
"; resources: {} stated, {} gone, {} detached or released, and {} key{} of the \
|
||||
runtime's own not stated",
|
||||
resources.stated,
|
||||
resources.gone,
|
||||
resources.released,
|
||||
@@ -523,7 +523,7 @@ impl Report {
|
||||
plural(resources.own),
|
||||
);
|
||||
if !resources.named.is_empty() {
|
||||
line.push_str(": ");
|
||||
line.push_str("; stated: ");
|
||||
line.push_str(&resources.named.join("; "));
|
||||
if resources.stated > resources.named.len() {
|
||||
let _ = write!(
|
||||
|
||||
@@ -132,8 +132,9 @@ fn the_line_names_what_the_failed_submission_held_and_flags_invalid_values() {
|
||||
"info 1: waits none, runs [0xa2 end], signals [0x20 VkQueue 0's timeline to 42 (at 42) \
|
||||
NOT ABOVE ITS VALUE (VUID-VkSubmitInfo-pSignalSemaphores-03242)]",
|
||||
"of 1 command buffer: #12 command buffer `probe`",
|
||||
"resources: 3 stated, 1 gone, 1 detached or released; 3 keys of the runtime's own: \
|
||||
buffer #7 of 4096 bytes, Shared; buffer #8 GONE; buffer #9, no-copy, DETACHED",
|
||||
"resources: 3 stated, 1 gone, 1 detached or released, and 3 keys of the runtime's own \
|
||||
not stated; stated: buffer #7 of 4096 bytes, Shared; buffer #8 GONE; buffer #9, \
|
||||
no-copy, DETACHED",
|
||||
] {
|
||||
assert!(line.contains(expected), "{expected:?} missing from {line}");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user