From a0e17b82c8ebab4d78ca8b16748246870fff2ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 30 Aug 2026 23:02:54 +0200 Subject: [PATCH] test-cases: default target to native,wasm32-wasi The old logic was picking an arbitrary (and very incomplete) set of targets as the default. Rather than try to make that set sensible, just limit it to native and wasm32-wasi - the former because we have real CI machines for most of the non-Wasm targets that were here previously, and the latter because Wasm is obviously not a host target. This only affected 27 tests, as far as I can tell: test/cases/ambiguous_reference.zig test/cases/compile_error.zig test/cases/comptime_aggregate_print.zig test/cases/decl_value_arena.zig test/cases/default_value_references_comptime_var.zig test/cases/disable_stack_tracing.zig test/cases/error_union_variant_is_runtime_known.zig test/cases/fn_typeinfo_passed_to_comptime_fn.zig test/cases/function_redeclaration.zig test/cases/global_variable_redeclaration.zig test/cases/inherit_want_safety.zig test/cases/inner_func_accessing_outer_var.zig test/cases/maximum_sized_integer_literal.zig test/cases/no_compile_panic_for_unchecked_arith.zig test/cases/non_leaf_functions.zig test/cases/passing_u0_to_function.zig test/cases/returning_undefined_sentinel_terminated_const_u8_slice.zig test/cases/returns_in_try.zig test/cases/runtime_bitwise_and.zig test/cases/runtime_bitwise_or.zig test/cases/save_function_return_values_in_callee_preserved_register.zig test/cases/sentinel_references_comptime_var.zig test/cases/setting_an_address_space_on_a_local_variable.zig test/cases/try_in_comptime_in_struct_in_test.zig test/cases/type_names.zig test/cases/union_unresolved_layout.zig test/cases/unused_vars.zig --- test/src/Cases.zig | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/test/src/Cases.zig b/test/src/Cases.zig index 26cb1ae14be419ca3d7347c773b2d1ec567a0331..d04bc01972bbb8b0fe09885471971fc5b5f1e8a0 100644 --- a/test/src/Cases.zig +++ b/test/src/Cases.zig @@ -677,25 +677,7 @@ const TestManifestConfigDefaults = struct { if (@"type" == .@"error") { return "native"; } - return comptime blk: { - var defaults: []const u8 = ""; - // TODO should we only return "mainstream" targets by default here? - // TODO we should also specify ABIs explicitly as the backends are - // getting more and more complete - // Linux - for (&[_][]const u8{ "x86_64", "arm", "aarch64" }) |arch| { - defaults = defaults ++ arch ++ "-linux" ++ ","; - } - // macOS - for (&[_][]const u8{"aarch64"}) |arch| { - defaults = defaults ++ arch ++ "-macos" ++ ","; - } - // Windows - defaults = defaults ++ "x86_64-windows" ++ ","; - // Wasm - defaults = defaults ++ "wasm32-wasi"; - break :blk defaults; - }; + return "native,wasm32-wasi"; } else if (std.mem.eql(u8, key, "output_mode")) { return switch (@"type") { .@"error" => "Obj", -- 2.54.0