gpu: Fix incorrect assertion in test virgl_end_to_end_once
The test trying to obtain capset info for 3 capsets, but we only had 2 capsets configured. The test previously passed because the virgl backend was incorectly returning the information for the aditional capset. Signed-off-by: Matej Hrica <mhrica@redhat.com> (cherry picked from commit 0eae1f227432548deba4adb3e445044ec6c2330b)
This commit is contained in:
parent
03967ec5e1
commit
9876d82efb
1 changed files with 3 additions and 1 deletions
|
|
@ -909,6 +909,8 @@ mod virgl_cov_tests {
|
|||
}
|
||||
assert!(call_b.read().is_err(), "no signal when no match");
|
||||
|
||||
let capsets = GpuCapset::VIRGL | GpuCapset::VIRGL2;
|
||||
|
||||
// Initialize virgl ONCE in this forked process; exercise adapter paths
|
||||
let cfg = GpuConfigBuilder::default()
|
||||
.set_gpu_mode(GpuMode::VirglRenderer)
|
||||
|
|
@ -1029,7 +1031,7 @@ mod virgl_cov_tests {
|
|||
assert_matches!(gpu.flush_resource(0, dirty), Ok(GpuResponse::OkNoData));
|
||||
|
||||
// Test capset queries
|
||||
for index in [0, 1, 3] {
|
||||
for index in 0..capsets.num_capsets() {
|
||||
test_capset_operations(&gpu, index);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue