diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-15 12:08:43 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-19 19:36:37 +0100 |
| commit | d4873c5d4fdd11f484df183e01c0825fe347fd8b (patch) | |
| tree | e0b0e6537ec3ef995df5d463c6efd939d93bdb41 /rust/qemu-api/meson.build | |
| parent | 716d89f9cc14faf784d83c945c40b7e8256ae525 (diff) | |
| download | focaccia-qemu-d4873c5d4fdd11f484df183e01c0825fe347fd8b.tar.gz focaccia-qemu-d4873c5d4fdd11f484df183e01c0825fe347fd8b.zip | |
bql: add a "mock" BQL for Rust unit tests
Right now, the stub BQL in stubs/iothread-lock.c always reports itself as unlocked. However, Rust would like to run its tests in an environment where the BQL *is* locked. Provide an extremely dirty function that flips the return value of bql_is_locked() to true. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/meson.build')
| -rw-r--r-- | rust/qemu-api/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/qemu-api/meson.build b/rust/qemu-api/meson.build index 7ff408ad68..50ec00e128 100644 --- a/rust/qemu-api/meson.build +++ b/rust/qemu-api/meson.build @@ -60,7 +60,7 @@ test('rust-qemu-api-integration', dependencies: [qemu_api, qemu_api_macros], link_whole: [rust_qemu_api_objs, libqemuutil]), args: [ - '--test', + '--test', '--test-threads', '1', '--format', 'pretty', ], protocol: 'rust', |