mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:04:43 +01:00
tests: pass on -Dsanitize-thread to unit tests
This commit is contained in:
parent
823f9039f1
commit
933bfd4282
2 changed files with 7 additions and 0 deletions
|
|
@ -478,6 +478,7 @@ pub fn build(b: *std.Build) !void {
|
|||
.desc = "Run the behavior tests",
|
||||
.optimize_modes = optimization_modes,
|
||||
.include_paths = &.{},
|
||||
.sanitize_thread = sanitize_thread,
|
||||
.skip_single_threaded = skip_single_threaded,
|
||||
.skip_non_native = skip_non_native,
|
||||
.test_only = test_only,
|
||||
|
|
@ -503,6 +504,7 @@ pub fn build(b: *std.Build) !void {
|
|||
.desc = "Run the compiler_rt tests",
|
||||
.optimize_modes = optimization_modes,
|
||||
.include_paths = &.{},
|
||||
.sanitize_thread = sanitize_thread,
|
||||
.skip_single_threaded = true,
|
||||
.skip_non_native = skip_non_native,
|
||||
.test_only = test_only,
|
||||
|
|
@ -529,6 +531,7 @@ pub fn build(b: *std.Build) !void {
|
|||
.desc = "Run the zig libc implementation unit tests",
|
||||
.optimize_modes = optimization_modes,
|
||||
.include_paths = &.{},
|
||||
.sanitize_thread = sanitize_thread,
|
||||
.skip_single_threaded = true,
|
||||
.skip_non_native = skip_non_native,
|
||||
.test_only = test_only,
|
||||
|
|
@ -555,6 +558,7 @@ pub fn build(b: *std.Build) !void {
|
|||
.desc = "Run the standard library tests",
|
||||
.optimize_modes = optimization_modes,
|
||||
.include_paths = &.{},
|
||||
.sanitize_thread = sanitize_thread,
|
||||
.skip_single_threaded = skip_single_threaded,
|
||||
.skip_non_native = skip_non_native,
|
||||
.test_only = test_only,
|
||||
|
|
@ -578,6 +582,7 @@ pub fn build(b: *std.Build) !void {
|
|||
.root_module = addCompilerMod(b, .{
|
||||
.optimize = optimize,
|
||||
.target = target,
|
||||
.sanitize_thread = sanitize_thread,
|
||||
.single_threaded = single_threaded,
|
||||
}),
|
||||
.filters = test_filters,
|
||||
|
|
|
|||
|
|
@ -2334,6 +2334,7 @@ pub const ModuleTestOptions = struct {
|
|||
skip_libc: bool,
|
||||
max_rss: usize = 0,
|
||||
no_builtin: bool = false,
|
||||
sanitize_thread: ?bool = null,
|
||||
build_options: ?*Step.Options = null,
|
||||
|
||||
pub const TestOnly = union(enum) {
|
||||
|
|
@ -2462,6 +2463,7 @@ fn addOneModuleTest(
|
|||
.link_libc = test_target.link_libc,
|
||||
.pic = test_target.pic,
|
||||
.strip = test_target.strip,
|
||||
.sanitize_thread = options.sanitize_thread,
|
||||
.single_threaded = test_target.single_threaded,
|
||||
}),
|
||||
.max_rss = max_rss,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue