mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
b67eaca468
forking a process with multiple threads will lead to undefined behavior. Unfortunately, newer versions of libtest will spawn multiple threads even when running a with --test-threads=1. This change implements a custom, test harness using libtest-mimic. It mimics the libtest CLI but enforces a single threaded test process. BUG=b:270167741 BUG=b:268496046 TEST=tools/run_tests --dut=host Change-Id: Icef6a1b65bab7f5cd5021c01fbd94487fa0ca5fb Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4295157 Reviewed-by: George Burgess <gbiv@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Dennis Kempin <denniskempin@google.com> Reviewed-by: Frederick Mayle <fmayle@google.com>
52 lines
1.2 KiB
TOML
52 lines
1.2 KiB
TOML
[package]
|
|
name = "base"
|
|
version = "0.1.0"
|
|
authors = ["The ChromiumOS Authors"]
|
|
edition = "2021"
|
|
|
|
# The process tests will use fork, which requires a custom test harness to enforce single threaded
|
|
# execution.
|
|
[[test]]
|
|
name = "process"
|
|
path = "tests/process.rs"
|
|
harness = false
|
|
|
|
[features]
|
|
chromeos = []
|
|
seccomp_trace = []
|
|
|
|
[dependencies]
|
|
audio_streams = { path = "../common/audio_streams" } # provided by ebuild
|
|
base_event_token_derive = { path = "base_event_token_derive", version = "*" }
|
|
data_model = { path = "../common/data_model" } # provided by ebuild
|
|
sync = { path = "../common/sync" } # provided by ebuild
|
|
|
|
cfg-if = "*"
|
|
chrono = "*"
|
|
env_logger = "0.9.0"
|
|
libc = "*"
|
|
log = "0.4"
|
|
once_cell = "1.7"
|
|
remain = "0.2"
|
|
serde = { version = "1", features = [ "derive" ] }
|
|
serde_json = "*"
|
|
smallvec = "1.6.1"
|
|
tempfile = "3"
|
|
thiserror = "1.0.20"
|
|
uuid = { version = "0.8.2", features = ["v4"] }
|
|
zerocopy = "*"
|
|
|
|
[dev-dependencies]
|
|
libtest-mimic = "0.6"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
minijail = "*"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
rand = "0.8"
|
|
winapi = "*"
|
|
win_util = { path = "../win_util"}
|
|
protobuf = { version = "*", features = [ "with-serde" ] }
|
|
|
|
[target.'cfg(windows)'.dev-dependencies]
|
|
regex = "*"
|