std: remove names from incorrectly named tests

Tests that only reference decls for the purpose of analyzing more tests
should be unnamed, otherwise trying to filter for just a referenced test
can become impossible depending on the names.
This commit is contained in:
Jacob Young 2023-04-21 20:46:05 -04:00
parent 08a8aa100d
commit 3f1c51ca90
8 changed files with 8 additions and 8 deletions

View file

@ -1141,7 +1141,7 @@ test "setName, getName" {
thread.join();
}
test "std.Thread" {
test {
// Doesn't use testing.refAllDecls() since that would pull in the compileError spinLoopHint.
_ = Futex;
_ = ResetEvent;

View file

@ -7,7 +7,7 @@ pub const Stack = @import("atomic/stack.zig").Stack;
pub const Queue = @import("atomic/queue.zig").Queue;
pub const Atomic = @import("atomic/Atomic.zig").Atomic;
test "std.atomic" {
test {
_ = @import("atomic/stack.zig");
_ = @import("atomic/queue.zig");
_ = @import("atomic/Atomic.zig");

View file

@ -473,6 +473,6 @@ pub const AffineCoordinates = struct {
}
};
test "p256" {
test {
_ = @import("tests/p256.zig");
}

View file

@ -473,7 +473,7 @@ pub const AffineCoordinates = struct {
}
};
test "p384" {
test {
if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest;
_ = @import("tests/p384.zig");

View file

@ -551,7 +551,7 @@ pub const AffineCoordinates = struct {
}
};
test "secp256k1" {
test {
if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest;
_ = @import("tests/secp256k1.zig");

View file

@ -36,7 +36,7 @@ const xxhash = @import("hash/xxhash.zig");
pub const XxHash64 = xxhash.XxHash64;
pub const XxHash32 = xxhash.XxHash32;
test "hash" {
test {
_ = adler;
_ = auto_hash;
_ = crc;

View file

@ -189,7 +189,7 @@ test "complex.magnitude" {
try testing.expect(math.approxEqAbs(f32, c, 5.83095, epsilon));
}
test "complex.cmath" {
test {
_ = @import("complex/abs.zig");
_ = @import("complex/acosh.zig");
_ = @import("complex/acos.zig");

View file

@ -10,7 +10,7 @@ pub const TrailerFlags = @import("meta/trailer_flags.zig").TrailerFlags;
const Type = std.builtin.Type;
test "std.meta.TrailerFlags" {
test {
_ = TrailerFlags;
}