[tint] Add "DeathTest" suffix to all death tests
This will allow us to exclude them from certain bots where they take
excessive time to run.
Bug: 346814503
Change-Id: I09b7c17a33a4d33dfed70c141038177b198b2834
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/194300
Auto-Submit: James Price <jrprice@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: James Price <jrprice@google.com>
diff --git a/src/tint/lang/core/ir/access_test.cc b/src/tint/lang/core/ir/access_test.cc
index 072a953..08839a5 100644
--- a/src/tint/lang/core/ir/access_test.cc
+++ b/src/tint/lang/core/ir/access_test.cc
@@ -38,6 +38,7 @@
namespace {
using IR_AccessTest = IRTestHelper;
+using IR_AccessDeathTest = IR_AccessTest;
TEST_F(IR_AccessTest, SetsUsage) {
auto* type = ty.ptr<function, i32>();
@@ -61,7 +62,7 @@
EXPECT_EQ(a, a->Result(0)->Instruction());
}
-TEST_F(IR_AccessTest, Fail_NullType) {
+TEST_F(IR_AccessDeathTest, Fail_NullType) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -70,7 +71,7 @@
auto* var = b.Var(ty);
b.Access(nullptr, var, u32(1));
},
- "");
+ "internal compiler error");
}
TEST_F(IR_AccessTest, Clone) {
diff --git a/src/tint/lang/core/ir/bitcast_test.cc b/src/tint/lang/core/ir/bitcast_test.cc
index debb722..b2baf1e 100644
--- a/src/tint/lang/core/ir/bitcast_test.cc
+++ b/src/tint/lang/core/ir/bitcast_test.cc
@@ -39,6 +39,7 @@
namespace {
using IR_BitcastTest = IRTestHelper;
+using IR_BitcastDeathTest = IR_BitcastTest;
TEST_F(IR_BitcastTest, Bitcast) {
auto* inst = b.Bitcast(mod.Types().i32(), 4_i);
@@ -71,14 +72,14 @@
EXPECT_THAT(args[0]->Usages(), testing::UnorderedElementsAre(Usage{inst, 0u}));
}
-TEST_F(IR_BitcastTest, Fail_NullType) {
+TEST_F(IR_BitcastDeathTest, Fail_NullType) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.Bitcast(nullptr, 1_i);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_BitcastTest, Clone) {
diff --git a/src/tint/lang/core/ir/block_param_test.cc b/src/tint/lang/core/ir/block_param_test.cc
index d5f14e2..ef02306 100644
--- a/src/tint/lang/core/ir/block_param_test.cc
+++ b/src/tint/lang/core/ir/block_param_test.cc
@@ -35,15 +35,16 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_BlockParamTest = IRTestHelper;
+using IR_BlockParamDeathTest = IR_BlockParamTest;
-TEST_F(IR_BlockParamTest, Fail_NullType) {
+TEST_F(IR_BlockParamDeathTest, Fail_NullType) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.BlockParam(nullptr);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_BlockParamTest, Clone) {
diff --git a/src/tint/lang/core/ir/break_if_test.cc b/src/tint/lang/core/ir/break_if_test.cc
index c32f00c..c6e4606 100644
--- a/src/tint/lang/core/ir/break_if_test.cc
+++ b/src/tint/lang/core/ir/break_if_test.cc
@@ -35,6 +35,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_BreakIfTest = IRTestHelper;
+using IR_BreakIfDeathTest = IR_BreakIfTest;
TEST_F(IR_BreakIfTest, Usage) {
auto* loop = b.Loop();
@@ -59,14 +60,14 @@
EXPECT_TRUE(brk->Results().IsEmpty());
}
-TEST_F(IR_BreakIfTest, Fail_NullLoop) {
+TEST_F(IR_BreakIfDeathTest, Fail_NullLoop) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.BreakIf(nullptr, true);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_BreakIfTest, Clone) {
diff --git a/src/tint/lang/core/ir/constant_test.cc b/src/tint/lang/core/ir/constant_test.cc
index e960936..6b288b9 100644
--- a/src/tint/lang/core/ir/constant_test.cc
+++ b/src/tint/lang/core/ir/constant_test.cc
@@ -37,6 +37,7 @@
namespace {
using IR_ConstantTest = IRTestHelper;
+using IR_ConstantDeathTest = IR_ConstantTest;
TEST_F(IR_ConstantTest, f32) {
StringStream str;
@@ -111,18 +112,18 @@
}
}
-TEST_F(IR_ConstantTest, Fail_NullValue) {
- EXPECT_DEATH_IF_SUPPORTED({ Constant c(nullptr); }, "");
+TEST_F(IR_ConstantDeathTest, Fail_NullValue) {
+ EXPECT_DEATH_IF_SUPPORTED({ Constant c(nullptr); }, "internal compiler error");
}
-TEST_F(IR_ConstantTest, Fail_Builder_NullValue) {
+TEST_F(IR_ConstantDeathTest, Fail_Builder_NullValue) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.Constant(nullptr);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_ConstantTest, Clone) {
diff --git a/src/tint/lang/core/ir/construct_test.cc b/src/tint/lang/core/ir/construct_test.cc
index d8cef8e..ca14bc4 100644
--- a/src/tint/lang/core/ir/construct_test.cc
+++ b/src/tint/lang/core/ir/construct_test.cc
@@ -35,6 +35,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_ConstructTest = IRTestHelper;
+using IR_ConstructDeathTest = IR_ConstructTest;
TEST_F(IR_ConstructTest, Usage) {
auto* arg1 = b.Constant(true);
@@ -55,14 +56,14 @@
EXPECT_EQ(c, c->Result(0)->Instruction());
}
-TEST_F(IR_ConstructTest, Fail_NullType) {
+TEST_F(IR_ConstructDeathTest, Fail_NullType) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.Construct(nullptr);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_ConstructTest, Clone) {
diff --git a/src/tint/lang/core/ir/continue_test.cc b/src/tint/lang/core/ir/continue_test.cc
index d4d9c6b..ab5e72d 100644
--- a/src/tint/lang/core/ir/continue_test.cc
+++ b/src/tint/lang/core/ir/continue_test.cc
@@ -35,6 +35,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_ContinueTest = IRTestHelper;
+using IR_ContinueDeathTest = IR_ContinueTest;
TEST_F(IR_ContinueTest, Usage) {
auto* loop = b.Loop();
@@ -57,14 +58,14 @@
EXPECT_TRUE(brk->Results().IsEmpty());
}
-TEST_F(IR_ContinueTest, Fail_NullLoop) {
+TEST_F(IR_ContinueDeathTest, Fail_NullLoop) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.Continue(nullptr);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_ContinueTest, Clone) {
diff --git a/src/tint/lang/core/ir/convert_test.cc b/src/tint/lang/core/ir/convert_test.cc
index 321809c..8e8578b 100644
--- a/src/tint/lang/core/ir/convert_test.cc
+++ b/src/tint/lang/core/ir/convert_test.cc
@@ -33,15 +33,16 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_ConvertTest = IRTestHelper;
+using IR_ConvertDeathTest = IR_ConvertTest;
-TEST_F(IR_ConvertTest, Fail_NullToType) {
+TEST_F(IR_ConvertDeathTest, Fail_NullToType) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.Convert(nullptr, 1_u);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_ConvertTest, Results) {
diff --git a/src/tint/lang/core/ir/core_binary_test.cc b/src/tint/lang/core/ir/core_binary_test.cc
index 4eac99c..4a75aa4 100644
--- a/src/tint/lang/core/ir/core_binary_test.cc
+++ b/src/tint/lang/core/ir/core_binary_test.cc
@@ -38,15 +38,16 @@
namespace {
using IR_BinaryTest = IRTestHelper;
+using IR_BinaryDeathTest = IR_BinaryTest;
-TEST_F(IR_BinaryTest, Fail_NullType) {
+TEST_F(IR_BinaryDeathTest, Fail_NullType) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.Add(nullptr, u32(1), u32(2));
},
- "");
+ "internal compiler error");
}
TEST_F(IR_BinaryTest, Result) {
diff --git a/src/tint/lang/core/ir/core_builtin_call_test.cc b/src/tint/lang/core/ir/core_builtin_call_test.cc
index bfc897e..b396749 100644
--- a/src/tint/lang/core/ir/core_builtin_call_test.cc
+++ b/src/tint/lang/core/ir/core_builtin_call_test.cc
@@ -34,6 +34,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_CoreBuiltinCallTest = IRTestHelper;
+using IR_CoreBuiltinCallDeathTest = IR_CoreBuiltinCallTest;
TEST_F(IR_CoreBuiltinCallTest, Usage) {
auto* arg1 = b.Constant(1_u);
@@ -54,24 +55,24 @@
EXPECT_EQ(builtin->Result(0)->Instruction(), builtin);
}
-TEST_F(IR_CoreBuiltinCallTest, Fail_NullType) {
+TEST_F(IR_CoreBuiltinCallDeathTest, Fail_NullType) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.Call(static_cast<type::Type*>(nullptr), core::BuiltinFn::kAbs);
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_CoreBuiltinCallTest, Fail_NoneFunction) {
+TEST_F(IR_CoreBuiltinCallDeathTest, Fail_NoneFunction) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.Call(mod.Types().f32(), core::BuiltinFn::kNone);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_CoreBuiltinCallTest, Clone) {
diff --git a/src/tint/lang/core/ir/core_unary_test.cc b/src/tint/lang/core/ir/core_unary_test.cc
index 67a68f0..4eb6fe8 100644
--- a/src/tint/lang/core/ir/core_unary_test.cc
+++ b/src/tint/lang/core/ir/core_unary_test.cc
@@ -38,6 +38,7 @@
namespace {
using IR_UnaryTest = IRTestHelper;
+using IR_UnaryDeathTest = IR_UnaryTest;
TEST_F(IR_UnaryTest, CreateComplement) {
auto* inst = b.Complement(mod.Types().i32(), 4_i);
@@ -91,14 +92,14 @@
EXPECT_EQ(inst->Result(0)->Instruction(), inst);
}
-TEST_F(IR_UnaryTest, Fail_NullType) {
+TEST_F(IR_UnaryDeathTest, Fail_NullType) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.Negation(nullptr, 1_i);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_UnaryTest, Clone) {
diff --git a/src/tint/lang/core/ir/function_param_test.cc b/src/tint/lang/core/ir/function_param_test.cc
index 30db305..810c040 100644
--- a/src/tint/lang/core/ir/function_param_test.cc
+++ b/src/tint/lang/core/ir/function_param_test.cc
@@ -35,8 +35,9 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_FunctionParamTest = IRTestHelper;
+using IR_FunctionParamDeathTest = IR_FunctionParamTest;
-TEST_F(IR_FunctionParamTest, Fail_SetDuplicateBuiltin) {
+TEST_F(IR_FunctionParamDeathTest, Fail_SetDuplicateBuiltin) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -45,7 +46,7 @@
fp->SetBuiltin(BuiltinValue::kVertexIndex);
fp->SetBuiltin(BuiltinValue::kSampleMask);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_FunctionParamTest, CloneEmpty) {
diff --git a/src/tint/lang/core/ir/function_test.cc b/src/tint/lang/core/ir/function_test.cc
index eda7fdd..265724b 100644
--- a/src/tint/lang/core/ir/function_test.cc
+++ b/src/tint/lang/core/ir/function_test.cc
@@ -35,18 +35,19 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_FunctionTest = IRTestHelper;
+using IR_FunctionDeathTest = IR_FunctionTest;
-TEST_F(IR_FunctionTest, Fail_NullReturnType) {
+TEST_F(IR_FunctionDeathTest, Fail_NullReturnType) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.Function("my_func", nullptr);
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_FunctionTest, Fail_DoubleReturnBuiltin) {
+TEST_F(IR_FunctionDeathTest, Fail_DoubleReturnBuiltin) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -55,10 +56,10 @@
f->SetReturnBuiltin(BuiltinValue::kFragDepth);
f->SetReturnBuiltin(BuiltinValue::kPosition);
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_FunctionTest, Fail_NullParam) {
+TEST_F(IR_FunctionDeathTest, Fail_NullParam) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -66,10 +67,10 @@
auto* f = b.Function("my_func", mod.Types().void_());
f->SetParams({nullptr});
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_FunctionTest, Fail_NullBlock) {
+TEST_F(IR_FunctionDeathTest, Fail_NullBlock) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -77,7 +78,7 @@
auto* f = b.Function("my_func", mod.Types().void_());
f->SetBlock(nullptr);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_FunctionTest, Clone) {
diff --git a/src/tint/lang/core/ir/if_test.cc b/src/tint/lang/core/ir/if_test.cc
index 236a47d..425ea23 100644
--- a/src/tint/lang/core/ir/if_test.cc
+++ b/src/tint/lang/core/ir/if_test.cc
@@ -34,6 +34,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_IfTest = IRTestHelper;
+using IR_IfDeathTest = IR_IfTest;
TEST_F(IR_IfTest, Usage) {
auto* cond = b.Constant(true);
@@ -54,24 +55,24 @@
EXPECT_EQ(if_->False()->Parent(), if_);
}
-TEST_F(IR_IfTest, Fail_NullTrueBlock) {
+TEST_F(IR_IfDeathTest, Fail_NullTrueBlock) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
If if_(b.Constant(false), nullptr, b.Block());
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_IfTest, Fail_NullFalseBlock) {
+TEST_F(IR_IfDeathTest, Fail_NullFalseBlock) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
If if_(b.Constant(false), b.Block(), nullptr);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_IfTest, Clone) {
diff --git a/src/tint/lang/core/ir/instruction_result_test.cc b/src/tint/lang/core/ir/instruction_result_test.cc
index 01aff8d..0244477 100644
--- a/src/tint/lang/core/ir/instruction_result_test.cc
+++ b/src/tint/lang/core/ir/instruction_result_test.cc
@@ -35,8 +35,9 @@
namespace {
using IR_InstructionResultTest = IRTestHelper;
+using IR_InstructionResultDeathTest = IR_InstructionResultTest;
-TEST_F(IR_InstructionResultTest, Destroy_HasInstruction) {
+TEST_F(IR_InstructionResultDeathTest, Destroy_HasInstruction) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -44,7 +45,7 @@
auto* val = b.Add(mod.Types().i32(), 1_i, 2_i)->Result(0);
val->Destroy();
},
- "");
+ "internal compiler error");
}
TEST_F(IR_InstructionResultTest, Clone) {
diff --git a/src/tint/lang/core/ir/instruction_test.cc b/src/tint/lang/core/ir/instruction_test.cc
index 3813711..c0d1b32 100644
--- a/src/tint/lang/core/ir/instruction_test.cc
+++ b/src/tint/lang/core/ir/instruction_test.cc
@@ -36,6 +36,7 @@
namespace {
using IR_InstructionTest = IRTestHelper;
+using IR_InstructionDeathTest = IR_InstructionTest;
TEST_F(IR_InstructionTest, InsertBefore) {
auto* inst1 = b.Loop();
@@ -47,7 +48,7 @@
EXPECT_EQ(inst1->Block(), blk);
}
-TEST_F(IR_InstructionTest, Fail_InsertBeforeNullptr) {
+TEST_F(IR_InstructionDeathTest, Fail_InsertBeforeNullptr) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -56,10 +57,10 @@
auto* inst1 = b.Loop();
inst1->InsertBefore(nullptr);
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_InstructionTest, Fail_InsertBeforeNotInserted) {
+TEST_F(IR_InstructionDeathTest, Fail_InsertBeforeNotInserted) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -69,7 +70,7 @@
auto* inst2 = b.Loop();
inst1->InsertBefore(inst2);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_InstructionTest, InsertAfter) {
@@ -82,7 +83,7 @@
EXPECT_EQ(inst1->Block(), blk);
}
-TEST_F(IR_InstructionTest, Fail_InsertAfterNullptr) {
+TEST_F(IR_InstructionDeathTest, Fail_InsertAfterNullptr) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -91,10 +92,10 @@
auto* inst1 = b.Loop();
inst1->InsertAfter(nullptr);
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_InstructionTest, Fail_InsertAfterNotInserted) {
+TEST_F(IR_InstructionDeathTest, Fail_InsertAfterNotInserted) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -104,7 +105,7 @@
auto* inst2 = b.Loop();
inst1->InsertAfter(inst2);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_InstructionTest, ReplaceWith) {
@@ -118,7 +119,7 @@
EXPECT_EQ(inst2->Block(), nullptr);
}
-TEST_F(IR_InstructionTest, Fail_ReplaceWithNullptr) {
+TEST_F(IR_InstructionDeathTest, Fail_ReplaceWithNullptr) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -129,10 +130,10 @@
blk->Append(inst1);
inst1->ReplaceWith(nullptr);
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_InstructionTest, Fail_ReplaceWithNotInserted) {
+TEST_F(IR_InstructionDeathTest, Fail_ReplaceWithNotInserted) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -142,7 +143,7 @@
auto* inst2 = b.Loop();
inst1->ReplaceWith(inst2);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_InstructionTest, Remove) {
@@ -156,7 +157,7 @@
EXPECT_EQ(inst1->Block(), nullptr);
}
-TEST_F(IR_InstructionTest, Fail_RemoveNotInserted) {
+TEST_F(IR_InstructionDeathTest, Fail_RemoveNotInserted) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -165,7 +166,7 @@
auto* inst1 = b.Loop();
inst1->Remove();
},
- "");
+ "internal compiler error");
}
TEST_F(IR_InstructionTest, DetachResult) {
diff --git a/src/tint/lang/core/ir/let_test.cc b/src/tint/lang/core/ir/let_test.cc
index 3d998d6..3aca477 100644
--- a/src/tint/lang/core/ir/let_test.cc
+++ b/src/tint/lang/core/ir/let_test.cc
@@ -39,8 +39,9 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_LetTest = IRTestHelper;
+using IR_LetDeathTest = IR_LetTest;
-TEST_F(IR_LetTest, Fail_NullValue) {
+TEST_F(IR_LetDeathTest, Fail_NullValue) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -48,7 +49,7 @@
ir::Value* value = nullptr;
b.Let("l", value);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_LetTest, Results) {
diff --git a/src/tint/lang/core/ir/loop_test.cc b/src/tint/lang/core/ir/loop_test.cc
index 6a7e214..537b6cd 100644
--- a/src/tint/lang/core/ir/loop_test.cc
+++ b/src/tint/lang/core/ir/loop_test.cc
@@ -33,6 +33,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_LoopTest = IRTestHelper;
+using IR_LoopDeathTest = IR_LoopTest;
TEST_F(IR_LoopTest, Parent) {
auto* loop = b.Loop();
@@ -46,34 +47,34 @@
EXPECT_TRUE(loop->Results().IsEmpty());
}
-TEST_F(IR_LoopTest, Fail_NullInitializerBlock) {
+TEST_F(IR_LoopDeathTest, Fail_NullInitializerBlock) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
Loop loop(nullptr, b.MultiInBlock(), b.MultiInBlock());
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_LoopTest, Fail_NullBodyBlock) {
+TEST_F(IR_LoopDeathTest, Fail_NullBodyBlock) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
Loop loop(b.Block(), nullptr, b.MultiInBlock());
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_LoopTest, Fail_NullContinuingBlock) {
+TEST_F(IR_LoopDeathTest, Fail_NullContinuingBlock) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
Loop loop(b.Block(), b.MultiInBlock(), nullptr);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_LoopTest, Clone) {
diff --git a/src/tint/lang/core/ir/multi_in_block_test.cc b/src/tint/lang/core/ir/multi_in_block_test.cc
index 583f544..7f14d75 100644
--- a/src/tint/lang/core/ir/multi_in_block_test.cc
+++ b/src/tint/lang/core/ir/multi_in_block_test.cc
@@ -34,8 +34,9 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_MultiInBlockTest = IRTestHelper;
+using IR_MultiInBlockDeathTest = IR_MultiInBlockTest;
-TEST_F(IR_MultiInBlockTest, Fail_NullInboundBranch) {
+TEST_F(IR_MultiInBlockDeathTest, Fail_NullInboundBranch) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -44,7 +45,7 @@
auto* blk = b.MultiInBlock();
blk->AddInboundSiblingBranch(nullptr);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_MultiInBlockTest, CloneInto) {
diff --git a/src/tint/lang/core/ir/next_iteration_test.cc b/src/tint/lang/core/ir/next_iteration_test.cc
index 89b4d40..6a7a6e3 100644
--- a/src/tint/lang/core/ir/next_iteration_test.cc
+++ b/src/tint/lang/core/ir/next_iteration_test.cc
@@ -33,15 +33,16 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_NextIterationTest = IRTestHelper;
+using IR_NextIterationDeathTest = IR_NextIterationTest;
-TEST_F(IR_NextIterationTest, Fail_NullLoop) {
+TEST_F(IR_NextIterationDeathTest, Fail_NullLoop) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.NextIteration(nullptr);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_NextIterationTest, Result) {
diff --git a/src/tint/lang/core/ir/swizzle_test.cc b/src/tint/lang/core/ir/swizzle_test.cc
index 6d26ab0..445adf0 100644
--- a/src/tint/lang/core/ir/swizzle_test.cc
+++ b/src/tint/lang/core/ir/swizzle_test.cc
@@ -36,6 +36,7 @@
namespace {
using IR_SwizzleTest = IRTestHelper;
+using IR_SwizzleDeathTest = IR_SwizzleTest;
TEST_F(IR_SwizzleTest, SetsUsage) {
auto* var = b.Var(ty.ptr<function, i32>());
@@ -53,7 +54,7 @@
EXPECT_EQ(a->Result(0)->Instruction(), a);
}
-TEST_F(IR_SwizzleTest, Fail_NullType) {
+TEST_F(IR_SwizzleDeathTest, Fail_NullType) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -61,10 +62,10 @@
auto* var = b.Var(mod.Types().ptr<function, i32>());
b.Swizzle(nullptr, var, {1u});
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_SwizzleTest, Fail_EmptyIndices) {
+TEST_F(IR_SwizzleDeathTest, Fail_EmptyIndices) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -72,10 +73,10 @@
auto* var = b.Var(mod.Types().ptr<function, i32>());
b.Swizzle(mod.Types().i32(), var, tint::Empty);
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_SwizzleTest, Fail_TooManyIndices) {
+TEST_F(IR_SwizzleDeathTest, Fail_TooManyIndices) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -83,10 +84,10 @@
auto* var = b.Var(mod.Types().ptr<function, i32>());
b.Swizzle(mod.Types().i32(), var, {1u, 1u, 1u, 1u, 1u});
},
- "");
+ "internal compiler error");
}
-TEST_F(IR_SwizzleTest, Fail_IndexOutOfRange) {
+TEST_F(IR_SwizzleDeathTest, Fail_IndexOutOfRange) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -94,7 +95,7 @@
auto* var = b.Var(mod.Types().ptr<function, i32>());
b.Swizzle(mod.Types().i32(), var, {4u});
},
- "");
+ "internal compiler error");
}
TEST_F(IR_SwizzleTest, Clone) {
diff --git a/src/tint/lang/core/ir/user_call_test.cc b/src/tint/lang/core/ir/user_call_test.cc
index 252375d..b09634c 100644
--- a/src/tint/lang/core/ir/user_call_test.cc
+++ b/src/tint/lang/core/ir/user_call_test.cc
@@ -35,6 +35,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_UserCallTest = IRTestHelper;
+using IR_UserCallDeathTest = IR_UserCallTest;
TEST_F(IR_UserCallTest, Usage) {
auto* func = b.Function("myfunc", mod.Types().void_());
@@ -57,14 +58,14 @@
EXPECT_EQ(e->Result(0)->Instruction(), e);
}
-TEST_F(IR_UserCallTest, Fail_NullType) {
+TEST_F(IR_UserCallDeathTest, Fail_NullType) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.Call(static_cast<type::Type*>(nullptr), b.Function("myfunc", mod.Types().void_()));
},
- "");
+ "internal compiler error");
}
TEST_F(IR_UserCallTest, Clone) {
diff --git a/src/tint/lang/core/ir/value_test.cc b/src/tint/lang/core/ir/value_test.cc
index c8b7954..e952f5f 100644
--- a/src/tint/lang/core/ir/value_test.cc
+++ b/src/tint/lang/core/ir/value_test.cc
@@ -35,6 +35,7 @@
namespace {
using IR_ValueTest = IRTestHelper;
+using IR_ValueDeathTest = IR_ValueTest;
TEST_F(IR_ValueTest, ReplaceAllUsesWith_Value) {
auto* val_old = b.InstructionResult(ty.i32());
@@ -65,7 +66,7 @@
EXPECT_FALSE(val->Alive());
}
-TEST_F(IR_ValueTest, Destroy_HasSource) {
+TEST_F(IR_ValueDeathTest, Destroy_HasSource) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
@@ -73,7 +74,7 @@
auto* val = b.Add(mod.Types().i32(), 1_i, 2_i)->Result(0);
val->Destroy();
},
- "");
+ "internal compiler error");
}
} // namespace
diff --git a/src/tint/lang/core/ir/var_test.cc b/src/tint/lang/core/ir/var_test.cc
index 88a1c69..548ba04 100644
--- a/src/tint/lang/core/ir/var_test.cc
+++ b/src/tint/lang/core/ir/var_test.cc
@@ -39,15 +39,16 @@
using namespace tint::core::number_suffixes; // NOLINT
using IR_VarTest = IRTestHelper;
+using IR_VarDeathTest = IR_VarTest;
-TEST_F(IR_VarTest, Fail_NullType) {
+TEST_F(IR_VarDeathTest, Fail_NullType) {
EXPECT_DEATH_IF_SUPPORTED(
{
Module mod;
Builder b{mod};
b.Var(nullptr);
},
- "");
+ "internal compiler error");
}
TEST_F(IR_VarTest, Results) {
diff --git a/src/tint/lang/spirv/reader/parser/helper_test.h b/src/tint/lang/spirv/reader/parser/helper_test.h
index 1dc7617..85b5dfd 100644
--- a/src/tint/lang/spirv/reader/parser/helper_test.h
+++ b/src/tint/lang/spirv/reader/parser/helper_test.h
@@ -87,6 +87,7 @@
};
using SpirvParserTest = SpirvParserTestHelperBase<testing::Test>;
+using SpirvParserDeathTest = SpirvParserTest;
template <typename T>
using SpirvParserTestWithParam = SpirvParserTestHelperBase<testing::TestWithParam<T>>;
diff --git a/src/tint/lang/spirv/reader/parser/struct_test.cc b/src/tint/lang/spirv/reader/parser/struct_test.cc
index f59236b..bb15a45 100644
--- a/src/tint/lang/spirv/reader/parser/struct_test.cc
+++ b/src/tint/lang/spirv/reader/parser/struct_test.cc
@@ -29,7 +29,7 @@
namespace tint::spirv::reader {
-TEST_F(SpirvParserTest, Struct_Empty) {
+TEST_F(SpirvParserDeathTest, Struct_Empty) {
EXPECT_DEATH_IF_SUPPORTED( //
{
auto assembly = Assemble(R"(
diff --git a/src/tint/lang/spirv/writer/ast_printer/assign_test.cc b/src/tint/lang/spirv/writer/ast_printer/assign_test.cc
index 7da01f4..3931832 100644
--- a/src/tint/lang/spirv/writer/ast_printer/assign_test.cc
+++ b/src/tint/lang/spirv/writer/ast_printer/assign_test.cc
@@ -36,6 +36,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using SpirvASTPrinterTest = TestHelper;
+using SpirvASTPrinterDeathTest = TestHelper;
TEST_F(SpirvASTPrinterTest, Assign_Var) {
auto* v = GlobalVar("var", ty.f32(), core::AddressSpace::kPrivate);
@@ -65,7 +66,7 @@
)");
}
-TEST_F(SpirvASTPrinterTest, Assign_Var_OutsideFunction_IsError) {
+TEST_F(SpirvASTPrinterDeathTest, Assign_Var_OutsideFunction_IsError) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder pb;
diff --git a/src/tint/lang/spirv/writer/ast_printer/ast_if_test.cc b/src/tint/lang/spirv/writer/ast_printer/ast_if_test.cc
index f8caeaa..25b30d0 100644
--- a/src/tint/lang/spirv/writer/ast_printer/ast_if_test.cc
+++ b/src/tint/lang/spirv/writer/ast_printer/ast_if_test.cc
@@ -35,6 +35,7 @@
namespace {
using SpirvASTPrinterTest = TestHelper;
+using SpirvASTPrinterDeathTest = SpirvASTPrinterTest;
TEST_F(SpirvASTPrinterTest, If_Empty) {
// if (true) {
@@ -59,7 +60,7 @@
)");
}
-TEST_F(SpirvASTPrinterTest, If_Empty_OutsideFunction_IsError) {
+TEST_F(SpirvASTPrinterDeathTest, If_Empty_OutsideFunction_IsError) {
// Outside a function.
// if (true) {
// }
diff --git a/src/tint/lang/spirv/writer/ast_printer/builtin_texture_test.cc b/src/tint/lang/spirv/writer/ast_printer/builtin_texture_test.cc
index 2105c9f..23aab15 100644
--- a/src/tint/lang/spirv/writer/ast_printer/builtin_texture_test.cc
+++ b/src/tint/lang/spirv/writer/ast_printer/builtin_texture_test.cc
@@ -3718,10 +3718,14 @@
} // NOLINT - Ignore the length of this function
using BuiltinTextureTest = TestParamHelper<ast::test::TextureOverloadCase>;
+using BuiltinTextureDeathTest = BuiltinTextureTest;
INSTANTIATE_TEST_SUITE_P(BuiltinTextureTest,
BuiltinTextureTest,
testing::ValuesIn(ast::test::TextureOverloadCase::ValidCases()));
+INSTANTIATE_TEST_SUITE_P(BuiltinTextureTest,
+ BuiltinTextureDeathTest,
+ testing::ValuesIn(ast::test::TextureOverloadCase::ValidCases()));
TEST_P(BuiltinTextureTest, Call) {
auto param = GetParam();
@@ -3774,7 +3778,7 @@
Validate(b);
}
-TEST_P(BuiltinTextureTest, OutsideFunction_IsError) {
+TEST_P(BuiltinTextureDeathTest, OutsideFunction_IsError) {
EXPECT_DEATH_IF_SUPPORTED(
{
auto param = GetParam();
diff --git a/src/tint/lang/spirv/writer/ast_printer/function_attribute_test.cc b/src/tint/lang/spirv/writer/ast_printer/function_attribute_test.cc
index 7c5fdfb..e7bf3ea 100644
--- a/src/tint/lang/spirv/writer/ast_printer/function_attribute_test.cc
+++ b/src/tint/lang/spirv/writer/ast_printer/function_attribute_test.cc
@@ -38,6 +38,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using SpirvASTPrinterTest = TestHelper;
+using SpirvASTPrinterDeathTest = SpirvASTPrinterTest;
TEST_F(SpirvASTPrinterTest, Attribute_Stage) {
auto* func = Func("main", tint::Empty, ty.void_(), tint::Empty,
@@ -164,7 +165,7 @@
)");
}
-TEST_F(SpirvASTPrinterTest, Decoration_ExecutionMode_WorkgroupSize_OverridableConst) {
+TEST_F(SpirvASTPrinterDeathTest, Decoration_ExecutionMode_WorkgroupSize_OverridableConst) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder pb;
@@ -184,7 +185,7 @@
"override-expressions should have been removed with the SubstituteOverride transform");
}
-TEST_F(SpirvASTPrinterTest, Decoration_ExecutionMode_WorkgroupSize_LiteralAndConst) {
+TEST_F(SpirvASTPrinterDeathTest, Decoration_ExecutionMode_WorkgroupSize_LiteralAndConst) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder pb;
diff --git a/src/tint/lang/spirv/writer/ast_printer/ident_expression_test.cc b/src/tint/lang/spirv/writer/ast_printer/ident_expression_test.cc
index 54e18bb..7921542 100644
--- a/src/tint/lang/spirv/writer/ast_printer/ident_expression_test.cc
+++ b/src/tint/lang/spirv/writer/ast_printer/ident_expression_test.cc
@@ -35,8 +35,9 @@
using namespace tint::core::number_suffixes; // NOLINT
using SpirvASTPrinterTest = TestHelper;
+using SpirvASTPrinterDeathTest = SpirvASTPrinterTest;
-TEST_F(SpirvASTPrinterTest, IdentifierExpression_GlobalConst) {
+TEST_F(SpirvASTPrinterDeathTest, IdentifierExpression_GlobalConst) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder pb;
diff --git a/src/tint/lang/wgsl/ast/assignment_statement_test.cc b/src/tint/lang/wgsl/ast/assignment_statement_test.cc
index 7ba43d1..8d30a61 100644
--- a/src/tint/lang/wgsl/ast/assignment_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/assignment_statement_test.cc
@@ -35,6 +35,7 @@
namespace {
using AssignmentStatementTest = TestHelper;
+using AssignmentStatementDeathTest = AssignmentStatementTest;
TEST_F(AssignmentStatementTest, Creation) {
auto* lhs = Expr("lhs");
@@ -63,7 +64,7 @@
EXPECT_TRUE(stmt->Is<AssignmentStatement>());
}
-TEST_F(AssignmentStatementTest, Assert_Null_LHS) {
+TEST_F(AssignmentStatementDeathTest, Assert_Null_LHS) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -72,7 +73,7 @@
"internal compiler error");
}
-TEST_F(AssignmentStatementTest, Assert_Null_RHS) {
+TEST_F(AssignmentStatementDeathTest, Assert_Null_RHS) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -81,7 +82,7 @@
"internal compiler error");
}
-TEST_F(AssignmentStatementTest, Assert_DifferentGenerationID_LHS) {
+TEST_F(AssignmentStatementDeathTest, Assert_DifferentGenerationID_LHS) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -91,7 +92,7 @@
"internal compiler error");
}
-TEST_F(AssignmentStatementTest, Assert_DifferentGenerationID_RHS) {
+TEST_F(AssignmentStatementDeathTest, Assert_DifferentGenerationID_RHS) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/binary_expression_test.cc b/src/tint/lang/wgsl/ast/binary_expression_test.cc
index 7dffd7b..933e598 100644
--- a/src/tint/lang/wgsl/ast/binary_expression_test.cc
+++ b/src/tint/lang/wgsl/ast/binary_expression_test.cc
@@ -31,6 +31,7 @@
namespace {
using BinaryExpressionTest = TestHelper;
+using BinaryExpressionDeathTest = BinaryExpressionTest;
TEST_F(BinaryExpressionTest, Creation) {
auto* lhs = Expr("lhs");
@@ -61,7 +62,7 @@
EXPECT_TRUE(r->Is<BinaryExpression>());
}
-TEST_F(BinaryExpressionTest, Assert_Null_LHS) {
+TEST_F(BinaryExpressionDeathTest, Assert_Null_LHS) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -70,7 +71,7 @@
"internal compiler error");
}
-TEST_F(BinaryExpressionTest, Assert_Null_RHS) {
+TEST_F(BinaryExpressionDeathTest, Assert_Null_RHS) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -79,7 +80,7 @@
"internal compiler error");
}
-TEST_F(BinaryExpressionTest, Assert_DifferentGenerationID_LHS) {
+TEST_F(BinaryExpressionDeathTest, Assert_DifferentGenerationID_LHS) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -89,7 +90,7 @@
"internal compiler error");
}
-TEST_F(BinaryExpressionTest, Assert_DifferentGenerationID_RHS) {
+TEST_F(BinaryExpressionDeathTest, Assert_DifferentGenerationID_RHS) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/block_statement_test.cc b/src/tint/lang/wgsl/ast/block_statement_test.cc
index 8540432..de969fe 100644
--- a/src/tint/lang/wgsl/ast/block_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/block_statement_test.cc
@@ -34,6 +34,7 @@
namespace {
using BlockStatementTest = TestHelper;
+using BlockStatementDeathTest = BlockStatementTest;
TEST_F(BlockStatementTest, Creation) {
auto* d = create<DiscardStatement>();
@@ -71,7 +72,7 @@
EXPECT_TRUE(b->Is<BlockStatement>());
}
-TEST_F(BlockStatementTest, Assert_Null_Statement) {
+TEST_F(BlockStatementDeathTest, Assert_Null_Statement) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -80,7 +81,7 @@
"internal compiler error");
}
-TEST_F(BlockStatementTest, Assert_DifferentGenerationID_Statement) {
+TEST_F(BlockStatementDeathTest, Assert_DifferentGenerationID_Statement) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/break_if_statement_test.cc b/src/tint/lang/wgsl/ast/break_if_statement_test.cc
index c5e3e4b..67fccd8 100644
--- a/src/tint/lang/wgsl/ast/break_if_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/break_if_statement_test.cc
@@ -33,6 +33,7 @@
namespace {
using BreakIfStatementTest = TestHelper;
+using BreakIfStatementDeathTest = BreakIfStatementTest;
TEST_F(BreakIfStatementTest, Creation) {
auto* cond = Expr("cond");
@@ -47,7 +48,7 @@
EXPECT_TRUE(stmt->Is<BreakIfStatement>());
}
-TEST_F(BreakIfStatementTest, Assert_Null_Condition) {
+TEST_F(BreakIfStatementDeathTest, Assert_Null_Condition) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -56,7 +57,7 @@
"internal compiler error");
}
-TEST_F(BreakIfStatementTest, Assert_DifferentGenerationID_Cond) {
+TEST_F(BreakIfStatementDeathTest, Assert_DifferentGenerationID_Cond) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/builtin_attribute_test.cc b/src/tint/lang/wgsl/ast/builtin_attribute_test.cc
index 6a56995..42aefe7 100644
--- a/src/tint/lang/wgsl/ast/builtin_attribute_test.cc
+++ b/src/tint/lang/wgsl/ast/builtin_attribute_test.cc
@@ -32,13 +32,14 @@
namespace {
using BuiltinAttributeTest = TestHelper;
+using BuiltinAttributeDeathTest = BuiltinAttributeTest;
TEST_F(BuiltinAttributeTest, Creation) {
auto* d = Builtin(core::BuiltinValue::kFragDepth);
CheckIdentifier(d->builtin, "frag_depth");
}
-TEST_F(BuiltinAttributeTest, Assert_Null_Builtin) {
+TEST_F(BuiltinAttributeDeathTest, Assert_Null_Builtin) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -47,7 +48,7 @@
"internal compiler error");
}
-TEST_F(BuiltinAttributeTest, Assert_DifferentGenerationID_Builtin) {
+TEST_F(BuiltinAttributeDeathTest, Assert_DifferentGenerationID_Builtin) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/call_expression_test.cc b/src/tint/lang/wgsl/ast/call_expression_test.cc
index 90bbc34..d719926 100644
--- a/src/tint/lang/wgsl/ast/call_expression_test.cc
+++ b/src/tint/lang/wgsl/ast/call_expression_test.cc
@@ -31,6 +31,7 @@
namespace {
using CallExpressionTest = TestHelper;
+using CallExpressionDeathTest = CallExpressionTest;
TEST_F(CallExpressionTest, CreationIdentifier) {
auto* func = Expr("func");
@@ -90,7 +91,7 @@
EXPECT_TRUE(stmt->Is<CallExpression>());
}
-TEST_F(CallExpressionTest, Assert_Null_Identifier) {
+TEST_F(CallExpressionDeathTest, Assert_Null_Identifier) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -99,7 +100,7 @@
"internal compiler error");
}
-TEST_F(CallExpressionTest, Assert_Null_Param) {
+TEST_F(CallExpressionDeathTest, Assert_Null_Param) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -112,7 +113,7 @@
"internal compiler error");
}
-TEST_F(CallExpressionTest, Assert_DifferentGenerationID_Identifier) {
+TEST_F(CallExpressionDeathTest, Assert_DifferentGenerationID_Identifier) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -122,7 +123,7 @@
"internal compiler error");
}
-TEST_F(CallExpressionTest, Assert_DifferentGenerationID_Type) {
+TEST_F(CallExpressionDeathTest, Assert_DifferentGenerationID_Type) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -132,7 +133,7 @@
"internal compiler error");
}
-TEST_F(CallExpressionTest, Assert_DifferentGenerationID_Param) {
+TEST_F(CallExpressionDeathTest, Assert_DifferentGenerationID_Param) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/call_statement_test.cc b/src/tint/lang/wgsl/ast/call_statement_test.cc
index 3c1a47f..573c4e8 100644
--- a/src/tint/lang/wgsl/ast/call_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/call_statement_test.cc
@@ -33,6 +33,7 @@
namespace {
using CallStatementTest = TestHelper;
+using CallStatementDeathTest = CallStatementTest;
TEST_F(CallStatementTest, Creation) {
auto* expr = Call("func");
@@ -46,7 +47,7 @@
EXPECT_TRUE(c->Is<CallStatement>());
}
-TEST_F(CallStatementTest, Assert_Null_Call) {
+TEST_F(CallStatementDeathTest, Assert_Null_Call) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -55,7 +56,7 @@
"internal compiler error");
}
-TEST_F(CallStatementTest, Assert_DifferentGenerationID_Call) {
+TEST_F(CallStatementDeathTest, Assert_DifferentGenerationID_Call) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/case_statement_test.cc b/src/tint/lang/wgsl/ast/case_statement_test.cc
index 6425ac2..da656ca 100644
--- a/src/tint/lang/wgsl/ast/case_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/case_statement_test.cc
@@ -37,6 +37,7 @@
namespace {
using CaseStatementTest = TestHelper;
+using CaseStatementDeathTest = CaseStatementTest;
TEST_F(CaseStatementTest, Creation_i32) {
auto* selector = CaseSelector(2_i);
@@ -98,7 +99,7 @@
EXPECT_TRUE(c->Is<CaseStatement>());
}
-TEST_F(CaseStatementTest, Assert_Null_Body) {
+TEST_F(CaseStatementDeathTest, Assert_Null_Body) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -107,7 +108,7 @@
"internal compiler error");
}
-TEST_F(CaseStatementTest, Assert_Null_Selector) {
+TEST_F(CaseStatementDeathTest, Assert_Null_Selector) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -117,7 +118,7 @@
"internal compiler error");
}
-TEST_F(CaseStatementTest, Assert_DifferentGenerationID_Call) {
+TEST_F(CaseStatementDeathTest, Assert_DifferentGenerationID_Call) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -128,7 +129,7 @@
"internal compiler error");
}
-TEST_F(CaseStatementTest, Assert_DifferentGenerationID_Selector) {
+TEST_F(CaseStatementDeathTest, Assert_DifferentGenerationID_Selector) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/clone_context_test.cc b/src/tint/lang/wgsl/ast/clone_context_test.cc
index 4d70dbc..bd44cfe 100644
--- a/src/tint/lang/wgsl/ast/clone_context_test.cc
+++ b/src/tint/lang/wgsl/ast/clone_context_test.cc
@@ -103,6 +103,7 @@
};
using ASTCloneContextTestNodeTest = ::testing::Test;
+using ASTCloneContextTestNodeDeathTest = ASTCloneContextTestNodeTest;
TEST_F(ASTCloneContextTestNodeTest, Clone) {
Allocator alloc;
@@ -1050,7 +1051,7 @@
EXPECT_EQ(cloned_root->vec[3]->name, cloned.Symbols().Get("c"));
}
-TEST_F(ASTCloneContextTestNodeTest, CloneWithReplaceAll_SameTypeTwice) {
+TEST_F(ASTCloneContextTestNodeDeathTest, CloneWithReplaceAll_SameTypeTwice) {
std::string Testnode_name = TypeInfo::Of<TestNode>().name;
EXPECT_DEATH_IF_SUPPORTED(
@@ -1066,7 +1067,7 @@
Testnode_name));
}
-TEST_F(ASTCloneContextTestNodeTest, CloneWithReplaceAll_BaseThenDerived) {
+TEST_F(ASTCloneContextTestNodeDeathTest, CloneWithReplaceAll_BaseThenDerived) {
std::string Testnode_name = TypeInfo::Of<TestNode>().name;
std::string replaceable_name = TypeInfo::Of<Replaceable>().name;
@@ -1083,7 +1084,7 @@
Testnode_name));
}
-TEST_F(ASTCloneContextTestNodeTest, CloneWithReplaceAll_DerivedThenBase) {
+TEST_F(ASTCloneContextTestNodeDeathTest, CloneWithReplaceAll_DerivedThenBase) {
std::string Testnode_name = TypeInfo::Of<TestNode>().name;
std::string replaceable_name = TypeInfo::Of<Replaceable>().name;
@@ -1101,8 +1102,9 @@
}
using ASTCloneContextTest = ::testing::Test;
+using ASTCloneContextDeathTest = ASTCloneContextTest;
-TEST_F(ASTCloneContextTest, CloneWithReplaceAll_SymbolsTwice) {
+TEST_F(ASTCloneContextDeathTest, CloneWithReplaceAll_SymbolsTwice) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder cloned;
@@ -1180,7 +1182,7 @@
EXPECT_EQ(cloned->generation_id, dst.ID());
}
-TEST_F(ASTCloneContextTest, GenerationIDs_Clone_ObjectNotOwnedBySrc) {
+TEST_F(ASTCloneContextDeathTest, GenerationIDs_Clone_ObjectNotOwnedBySrc) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder dst;
@@ -1193,7 +1195,7 @@
R"(internal compiler error: TINT_ASSERT_GENERATION_IDS_EQUAL_IF_VALID(src_id, object))"));
}
-TEST_F(ASTCloneContextTest, GenerationIDs_Clone_ObjectNotOwnedByDst) {
+TEST_F(ASTCloneContextDeathTest, GenerationIDs_Clone_ObjectNotOwnedByDst) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder dst;
diff --git a/src/tint/lang/wgsl/ast/color_attribute_test.cc b/src/tint/lang/wgsl/ast/color_attribute_test.cc
index 990ee41..b5a9507 100644
--- a/src/tint/lang/wgsl/ast/color_attribute_test.cc
+++ b/src/tint/lang/wgsl/ast/color_attribute_test.cc
@@ -34,6 +34,7 @@
namespace {
using ColorAttributeTest = TestHelper;
+using ColorAttributeDeathTest = ColorAttributeTest;
TEST_F(ColorAttributeTest, Creation) {
auto* expr = Expr(1_u);
@@ -41,7 +42,7 @@
EXPECT_EQ(c->expr, expr);
}
-TEST_F(ColorAttributeTest, Assert_Null_Builtin) {
+TEST_F(ColorAttributeDeathTest, Assert_Null_Builtin) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -50,7 +51,7 @@
"internal compiler error");
}
-TEST_F(ColorAttributeTest, Assert_DifferentGenerationID_Color) {
+TEST_F(ColorAttributeDeathTest, Assert_DifferentGenerationID_Color) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/compound_assignment_statement_test.cc b/src/tint/lang/wgsl/ast/compound_assignment_statement_test.cc
index ee26804..9890604 100644
--- a/src/tint/lang/wgsl/ast/compound_assignment_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/compound_assignment_statement_test.cc
@@ -35,6 +35,7 @@
namespace {
using CompoundAssignmentStatementTest = TestHelper;
+using CompoundAssignmentStatementDeathTest = CompoundAssignmentStatementTest;
TEST_F(CompoundAssignmentStatementTest, Creation) {
auto* lhs = Expr("lhs");
@@ -67,7 +68,7 @@
EXPECT_TRUE(stmt->Is<CompoundAssignmentStatement>());
}
-TEST_F(CompoundAssignmentStatementTest, Assert_Null_LHS) {
+TEST_F(CompoundAssignmentStatementDeathTest, Assert_Null_LHS) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -76,7 +77,7 @@
"internal compiler error");
}
-TEST_F(CompoundAssignmentStatementTest, Assert_Null_RHS) {
+TEST_F(CompoundAssignmentStatementDeathTest, Assert_Null_RHS) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -85,7 +86,7 @@
"internal compiler error");
}
-TEST_F(CompoundAssignmentStatementTest, Assert_DifferentGenerationID_LHS) {
+TEST_F(CompoundAssignmentStatementDeathTest, Assert_DifferentGenerationID_LHS) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -96,7 +97,7 @@
"internal compiler error");
}
-TEST_F(CompoundAssignmentStatementTest, Assert_DifferentGenerationID_RHS) {
+TEST_F(CompoundAssignmentStatementDeathTest, Assert_DifferentGenerationID_RHS) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/const_assert_test.cc b/src/tint/lang/wgsl/ast/const_assert_test.cc
index 0f94a51..045fda6 100644
--- a/src/tint/lang/wgsl/ast/const_assert_test.cc
+++ b/src/tint/lang/wgsl/ast/const_assert_test.cc
@@ -36,6 +36,7 @@
namespace {
using ConstAssertTest = TestHelper;
+using ConstAssertDeathTest = ConstAssertTest;
TEST_F(ConstAssertTest, Creation) {
auto* cond = Expr(true);
@@ -58,7 +59,7 @@
EXPECT_TRUE(stmt->Is<ast::ConstAssert>());
}
-TEST_F(ConstAssertTest, Assert_Null_Condition) {
+TEST_F(ConstAssertDeathTest, Assert_Null_Condition) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -67,7 +68,7 @@
"internal compiler error");
}
-TEST_F(ConstAssertTest, Assert_DifferentGenerationID_Condition) {
+TEST_F(ConstAssertDeathTest, Assert_DifferentGenerationID_Condition) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/diagnostic_control_test.cc b/src/tint/lang/wgsl/ast/diagnostic_control_test.cc
index 9873fb7..244ea67 100644
--- a/src/tint/lang/wgsl/ast/diagnostic_control_test.cc
+++ b/src/tint/lang/wgsl/ast/diagnostic_control_test.cc
@@ -35,8 +35,9 @@
namespace {
using DiagnosticControlTest = TestHelper;
+using DiagnosticControlDeathTest = DiagnosticControlTest;
-TEST_F(DiagnosticControlTest, Assert_RuleNotNull) {
+TEST_F(DiagnosticControlDeathTest, Assert_RuleNotNull) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
diff --git a/src/tint/lang/wgsl/ast/diagnostic_rule_name_test.cc b/src/tint/lang/wgsl/ast/diagnostic_rule_name_test.cc
index 387792c..d696dcf 100644
--- a/src/tint/lang/wgsl/ast/diagnostic_rule_name_test.cc
+++ b/src/tint/lang/wgsl/ast/diagnostic_rule_name_test.cc
@@ -34,13 +34,14 @@
namespace {
using DiagnosticRuleNameTest = TestHelper;
+using DiagnosticRuleNameDeathTest = DiagnosticRuleNameTest;
TEST_F(DiagnosticRuleNameTest, String) {
EXPECT_EQ(DiagnosticRuleName("name")->String(), "name");
EXPECT_EQ(DiagnosticRuleName("category", "name")->String(), "category.name");
}
-TEST_F(DiagnosticRuleNameTest, Assert_NameNotTemplated) {
+TEST_F(DiagnosticRuleNameDeathTest, Assert_NameNotTemplated) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -49,7 +50,7 @@
"internal compiler error");
}
-TEST_F(DiagnosticRuleNameTest, Assert_CategoryNotTemplated) {
+TEST_F(DiagnosticRuleNameDeathTest, Assert_CategoryNotTemplated) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
diff --git a/src/tint/lang/wgsl/ast/for_loop_statement_test.cc b/src/tint/lang/wgsl/ast/for_loop_statement_test.cc
index d68ff74..0792ba7 100644
--- a/src/tint/lang/wgsl/ast/for_loop_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/for_loop_statement_test.cc
@@ -35,6 +35,7 @@
namespace {
using ForLoopStatementTest = TestHelper;
+using ForLoopStatementDeathTest = ForLoopStatementTest;
TEST_F(ForLoopStatementTest, Creation) {
auto* init = Decl(Var("i", ty.u32()));
@@ -72,7 +73,7 @@
EXPECT_THAT(l->attributes, testing::ElementsAre(attr1, attr2));
}
-TEST_F(ForLoopStatementTest, Assert_Null_Body) {
+TEST_F(ForLoopStatementDeathTest, Assert_Null_Body) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -81,7 +82,7 @@
"internal compiler error");
}
-TEST_F(ForLoopStatementTest, Assert_DifferentGenerationID_Initializer) {
+TEST_F(ForLoopStatementDeathTest, Assert_DifferentGenerationID_Initializer) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -91,7 +92,7 @@
"internal compiler error");
}
-TEST_F(ForLoopStatementTest, Assert_DifferentGenerationID_Condition) {
+TEST_F(ForLoopStatementDeathTest, Assert_DifferentGenerationID_Condition) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -101,7 +102,7 @@
"internal compiler error");
}
-TEST_F(ForLoopStatementTest, Assert_DifferentGenerationID_Continuing) {
+TEST_F(ForLoopStatementDeathTest, Assert_DifferentGenerationID_Continuing) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -111,7 +112,7 @@
"internal compiler error");
}
-TEST_F(ForLoopStatementTest, Assert_DifferentGenerationID_Body) {
+TEST_F(ForLoopStatementDeathTest, Assert_DifferentGenerationID_Body) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/function_test.cc b/src/tint/lang/wgsl/ast/function_test.cc
index 316d814..68dbe2c 100644
--- a/src/tint/lang/wgsl/ast/function_test.cc
+++ b/src/tint/lang/wgsl/ast/function_test.cc
@@ -38,6 +38,7 @@
namespace {
using FunctionTest = TestHelper;
+using FunctionDeathTest = FunctionTest;
TEST_F(FunctionTest, Creation_i32ReturnType) {
tint::Vector params{Param("var", ty.i32())};
@@ -112,7 +113,7 @@
EXPECT_EQ(src.range.begin.column, 2u);
}
-TEST_F(FunctionTest, Assert_NullName) {
+TEST_F(FunctionDeathTest, Assert_NullName) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -121,7 +122,7 @@
"internal compiler error");
}
-TEST_F(FunctionTest, Assert_TemplatedName) {
+TEST_F(FunctionDeathTest, Assert_TemplatedName) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -130,7 +131,7 @@
"internal compiler error");
}
-TEST_F(FunctionTest, Assert_NullParam) {
+TEST_F(FunctionDeathTest, Assert_NullParam) {
using ParamList = tint::Vector<const Parameter*, 2>;
EXPECT_DEATH_IF_SUPPORTED(
{
@@ -143,7 +144,7 @@
"internal compiler error");
}
-TEST_F(FunctionTest, Assert_DifferentGenerationID_Symbol) {
+TEST_F(FunctionDeathTest, Assert_DifferentGenerationID_Symbol) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -153,7 +154,7 @@
"internal compiler error");
}
-TEST_F(FunctionTest, Assert_DifferentGenerationID_Param) {
+TEST_F(FunctionDeathTest, Assert_DifferentGenerationID_Param) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -167,7 +168,7 @@
"internal compiler error");
}
-TEST_F(FunctionTest, Assert_DifferentGenerationID_Attr) {
+TEST_F(FunctionDeathTest, Assert_DifferentGenerationID_Attr) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -180,7 +181,7 @@
"internal compiler error");
}
-TEST_F(FunctionTest, Assert_DifferentGenerationID_ReturnType) {
+TEST_F(FunctionDeathTest, Assert_DifferentGenerationID_ReturnType) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -190,7 +191,7 @@
"internal compiler error");
}
-TEST_F(FunctionTest, Assert_DifferentGenerationID_ReturnAttr) {
+TEST_F(FunctionDeathTest, Assert_DifferentGenerationID_ReturnAttr) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/identifier_expression_test.cc b/src/tint/lang/wgsl/ast/identifier_expression_test.cc
index 8d3641e..2017f79 100644
--- a/src/tint/lang/wgsl/ast/identifier_expression_test.cc
+++ b/src/tint/lang/wgsl/ast/identifier_expression_test.cc
@@ -33,6 +33,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using IdentifierExpressionTest = TestHelper;
+using IdentifierExpressionDeathTest = IdentifierExpressionTest;
TEST_F(IdentifierExpressionTest, Creation) {
auto* i = Expr("ident");
@@ -56,7 +57,7 @@
EXPECT_EQ(i->identifier->source.range, (Source::Range{{20, 2}}));
}
-TEST_F(IdentifierExpressionTest, Assert_InvalidSymbol) {
+TEST_F(IdentifierExpressionDeathTest, Assert_InvalidSymbol) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -65,7 +66,7 @@
"internal compiler error");
}
-TEST_F(IdentifierExpressionTest, Assert_DifferentGenerationID_Symbol) {
+TEST_F(IdentifierExpressionDeathTest, Assert_DifferentGenerationID_Symbol) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/identifier_test.cc b/src/tint/lang/wgsl/ast/identifier_test.cc
index 2a71304..9dd1473 100644
--- a/src/tint/lang/wgsl/ast/identifier_test.cc
+++ b/src/tint/lang/wgsl/ast/identifier_test.cc
@@ -31,6 +31,7 @@
namespace {
using IdentifierTest = TestHelper;
+using IdentifierDeathTest = IdentifierTest;
TEST_F(IdentifierTest, Creation) {
auto* i = Ident("ident");
@@ -51,7 +52,7 @@
EXPECT_TRUE(i->Is<Identifier>());
}
-TEST_F(IdentifierTest, Assert_InvalidSymbol) {
+TEST_F(IdentifierDeathTest, Assert_InvalidSymbol) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -60,7 +61,7 @@
"internal compiler error");
}
-TEST_F(IdentifierTest, Assert_DifferentGenerationID_Symbol) {
+TEST_F(IdentifierDeathTest, Assert_DifferentGenerationID_Symbol) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/if_statement_test.cc b/src/tint/lang/wgsl/ast/if_statement_test.cc
index 7b37286..5c51c17 100644
--- a/src/tint/lang/wgsl/ast/if_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/if_statement_test.cc
@@ -35,6 +35,7 @@
namespace {
using IfStatementTest = TestHelper;
+using IfStatementDeathTest = IfStatementTest;
TEST_F(IfStatementTest, Creation) {
auto* cond = Expr("cond");
@@ -58,7 +59,7 @@
EXPECT_TRUE(stmt->Is<IfStatement>());
}
-TEST_F(IfStatementTest, Assert_Null_Condition) {
+TEST_F(IfStatementDeathTest, Assert_Null_Condition) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -67,7 +68,7 @@
"internal compiler error");
}
-TEST_F(IfStatementTest, Assert_Null_Body) {
+TEST_F(IfStatementDeathTest, Assert_Null_Body) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -76,7 +77,7 @@
"internal compiler error");
}
-TEST_F(IfStatementTest, Assert_InvalidElse) {
+TEST_F(IfStatementDeathTest, Assert_InvalidElse) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -85,7 +86,7 @@
"internal compiler error");
}
-TEST_F(IfStatementTest, Assert_DifferentGenerationID_Cond) {
+TEST_F(IfStatementDeathTest, Assert_DifferentGenerationID_Cond) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -95,7 +96,7 @@
"internal compiler error");
}
-TEST_F(IfStatementTest, Assert_DifferentGenerationID_Body) {
+TEST_F(IfStatementDeathTest, Assert_DifferentGenerationID_Body) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -105,7 +106,7 @@
"internal compiler error");
}
-TEST_F(IfStatementTest, Assert_DifferentGenerationID_ElseStatement) {
+TEST_F(IfStatementDeathTest, Assert_DifferentGenerationID_ElseStatement) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/increment_decrement_statement_test.cc b/src/tint/lang/wgsl/ast/increment_decrement_statement_test.cc
index 70730d0..36a8caf 100644
--- a/src/tint/lang/wgsl/ast/increment_decrement_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/increment_decrement_statement_test.cc
@@ -33,6 +33,7 @@
namespace {
using IncrementDecrementStatementTest = TestHelper;
+using IncrementDecrementStatementDeathTest = IncrementDecrementStatementTest;
TEST_F(IncrementDecrementStatementTest, Creation) {
auto* expr = Expr("expr");
@@ -65,7 +66,7 @@
EXPECT_FALSE(i->increment);
}
-TEST_F(IncrementDecrementStatementTest, Assert_DifferentGenerationID_Expr) {
+TEST_F(IncrementDecrementStatementDeathTest, Assert_DifferentGenerationID_Expr) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/index_accessor_expression_test.cc b/src/tint/lang/wgsl/ast/index_accessor_expression_test.cc
index 7c1527a..21245ea 100644
--- a/src/tint/lang/wgsl/ast/index_accessor_expression_test.cc
+++ b/src/tint/lang/wgsl/ast/index_accessor_expression_test.cc
@@ -31,6 +31,7 @@
namespace {
using IndexAccessorExpressionTest = TestHelper;
+using IndexAccessorExpressionDeathTest = IndexAccessorExpressionTest;
TEST_F(IndexAccessorExpressionTest, Create) {
auto* obj = Expr("obj");
@@ -59,7 +60,7 @@
EXPECT_TRUE(exp->Is<IndexAccessorExpression>());
}
-TEST_F(IndexAccessorExpressionTest, Assert_Null_Array) {
+TEST_F(IndexAccessorExpressionDeathTest, Assert_Null_Array) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -68,7 +69,7 @@
"internal compiler error");
}
-TEST_F(IndexAccessorExpressionTest, Assert_Null_Index) {
+TEST_F(IndexAccessorExpressionDeathTest, Assert_Null_Index) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -77,7 +78,7 @@
"internal compiler error");
}
-TEST_F(IndexAccessorExpressionTest, Assert_DifferentGenerationID_Array) {
+TEST_F(IndexAccessorExpressionDeathTest, Assert_DifferentGenerationID_Array) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -87,7 +88,7 @@
"internal compiler error");
}
-TEST_F(IndexAccessorExpressionTest, Assert_DifferentGenerationID_Index) {
+TEST_F(IndexAccessorExpressionDeathTest, Assert_DifferentGenerationID_Index) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/loop_statement_test.cc b/src/tint/lang/wgsl/ast/loop_statement_test.cc
index 3afccfa..30bcfde 100644
--- a/src/tint/lang/wgsl/ast/loop_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/loop_statement_test.cc
@@ -36,6 +36,7 @@
namespace {
using LoopStatementTest = TestHelper;
+using LoopStatementDeathTest = LoopStatementTest;
TEST_F(LoopStatementTest, Creation) {
auto* body = Block(create<DiscardStatement>());
@@ -92,7 +93,7 @@
EXPECT_TRUE(l->continuing);
}
-TEST_F(LoopStatementTest, Assert_Null_Body) {
+TEST_F(LoopStatementDeathTest, Assert_Null_Body) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -101,7 +102,7 @@
"internal compiler error");
}
-TEST_F(LoopStatementTest, Assert_DifferentGenerationID_Body) {
+TEST_F(LoopStatementDeathTest, Assert_DifferentGenerationID_Body) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -111,7 +112,7 @@
"internal compiler error");
}
-TEST_F(LoopStatementTest, Assert_DifferentGenerationID_Continuing) {
+TEST_F(LoopStatementDeathTest, Assert_DifferentGenerationID_Continuing) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/member_accessor_expression_test.cc b/src/tint/lang/wgsl/ast/member_accessor_expression_test.cc
index 28153d1..a3f2bc5 100644
--- a/src/tint/lang/wgsl/ast/member_accessor_expression_test.cc
+++ b/src/tint/lang/wgsl/ast/member_accessor_expression_test.cc
@@ -31,6 +31,7 @@
namespace {
using MemberAccessorExpressionTest = TestHelper;
+using MemberAccessorExpressionDeathTest = MemberAccessorExpressionTest;
TEST_F(MemberAccessorExpressionTest, Creation) {
auto* str = Expr("structure");
@@ -54,7 +55,7 @@
EXPECT_TRUE(stmt->Is<MemberAccessorExpression>());
}
-TEST_F(MemberAccessorExpressionTest, Assert_Null_Struct) {
+TEST_F(MemberAccessorExpressionDeathTest, Assert_Null_Struct) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -63,7 +64,7 @@
"internal compiler error");
}
-TEST_F(MemberAccessorExpressionTest, Assert_Null_Member) {
+TEST_F(MemberAccessorExpressionDeathTest, Assert_Null_Member) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -72,7 +73,7 @@
"internal compiler error");
}
-TEST_F(MemberAccessorExpressionTest, Assert_DifferentGenerationID_Struct) {
+TEST_F(MemberAccessorExpressionDeathTest, Assert_DifferentGenerationID_Struct) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -82,7 +83,7 @@
"internal compiler error");
}
-TEST_F(MemberAccessorExpressionTest, Assert_DifferentGenerationID_Member) {
+TEST_F(MemberAccessorExpressionDeathTest, Assert_DifferentGenerationID_Member) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -92,7 +93,7 @@
"internal compiler error");
}
-TEST_F(MemberAccessorExpressionTest, Assert_MemberNotTemplated) {
+TEST_F(MemberAccessorExpressionDeathTest, Assert_MemberNotTemplated) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
diff --git a/src/tint/lang/wgsl/ast/module_test.cc b/src/tint/lang/wgsl/ast/module_test.cc
index 36773ed..4e66e22 100644
--- a/src/tint/lang/wgsl/ast/module_test.cc
+++ b/src/tint/lang/wgsl/ast/module_test.cc
@@ -34,6 +34,7 @@
namespace {
using ModuleTest = TestHelper;
+using ModuleDeathTest = ModuleTest;
TEST_F(ModuleTest, Creation) {
EXPECT_EQ(resolver::Resolve(*this).AST().Functions().Length(), 0u);
@@ -51,7 +52,7 @@
EXPECT_EQ(nullptr, program.AST().Functions().Find(program.Symbols().Get("Missing")));
}
-TEST_F(ModuleTest, Assert_Null_GlobalVariable) {
+TEST_F(ModuleDeathTest, Assert_Null_GlobalVariable) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder builder;
@@ -60,7 +61,7 @@
"internal compiler error");
}
-TEST_F(ModuleTest, Assert_Null_TypeDecl) {
+TEST_F(ModuleDeathTest, Assert_Null_TypeDecl) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder builder;
@@ -69,7 +70,7 @@
"internal compiler error");
}
-TEST_F(ModuleTest, Assert_DifferentGenerationID_Function) {
+TEST_F(ModuleDeathTest, Assert_DifferentGenerationID_Function) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -80,7 +81,7 @@
"internal compiler error");
}
-TEST_F(ModuleTest, Assert_DifferentGenerationID_GlobalVariable) {
+TEST_F(ModuleDeathTest, Assert_DifferentGenerationID_GlobalVariable) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -90,7 +91,7 @@
"internal compiler error");
}
-TEST_F(ModuleTest, Assert_Null_Function) {
+TEST_F(ModuleDeathTest, Assert_Null_Function) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder builder;
diff --git a/src/tint/lang/wgsl/ast/return_statement_test.cc b/src/tint/lang/wgsl/ast/return_statement_test.cc
index 138a46c..2ff7265 100644
--- a/src/tint/lang/wgsl/ast/return_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/return_statement_test.cc
@@ -33,6 +33,7 @@
namespace {
using ReturnStatementTest = TestHelper;
+using ReturnStatementDeathTest = ReturnStatementTest;
TEST_F(ReturnStatementTest, Creation) {
auto* expr = Expr("expr");
@@ -64,7 +65,7 @@
EXPECT_NE(r->value, nullptr);
}
-TEST_F(ReturnStatementTest, Assert_DifferentGenerationID_Expr) {
+TEST_F(ReturnStatementDeathTest, Assert_DifferentGenerationID_Expr) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/struct_member_test.cc b/src/tint/lang/wgsl/ast/struct_member_test.cc
index 8a76d9f..98d3435 100644
--- a/src/tint/lang/wgsl/ast/struct_member_test.cc
+++ b/src/tint/lang/wgsl/ast/struct_member_test.cc
@@ -32,6 +32,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using StructMemberTest = TestHelper;
+using StructMemberDeathTest = StructMemberTest;
TEST_F(StructMemberTest, Creation) {
auto* st = Member("a", ty.i32(), tint::Vector{MemberSize(4_a)});
@@ -57,7 +58,7 @@
EXPECT_EQ(st->source.range.end.column, 8u);
}
-TEST_F(StructMemberTest, Assert_Null_Name) {
+TEST_F(StructMemberDeathTest, Assert_Null_Name) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -66,7 +67,7 @@
"internal compiler error");
}
-TEST_F(StructMemberTest, Assert_Null_Type) {
+TEST_F(StructMemberDeathTest, Assert_Null_Type) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -75,7 +76,7 @@
"internal compiler error");
}
-TEST_F(StructMemberTest, Assert_Null_Attribute) {
+TEST_F(StructMemberDeathTest, Assert_Null_Attribute) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -84,7 +85,7 @@
"internal compiler error");
}
-TEST_F(StructMemberTest, Assert_DifferentGenerationID_Symbol) {
+TEST_F(StructMemberDeathTest, Assert_DifferentGenerationID_Symbol) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -94,7 +95,7 @@
"internal compiler error");
}
-TEST_F(StructMemberTest, Assert_DifferentGenerationID_Attribute) {
+TEST_F(StructMemberDeathTest, Assert_DifferentGenerationID_Attribute) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/struct_test.cc b/src/tint/lang/wgsl/ast/struct_test.cc
index b47e920..0e62bdc 100644
--- a/src/tint/lang/wgsl/ast/struct_test.cc
+++ b/src/tint/lang/wgsl/ast/struct_test.cc
@@ -34,6 +34,7 @@
namespace {
using AstStructTest = TestHelper;
+using AstStructDeathTest = AstStructTest;
using BlockAttribute = transform::AddBlockAttribute::BlockAttribute;
TEST_F(AstStructTest, Creation) {
@@ -80,7 +81,7 @@
EXPECT_EQ(s->source.range.end.column, 8u);
}
-TEST_F(AstStructTest, Assert_Null_StructMember) {
+TEST_F(AstStructDeathTest, Assert_Null_StructMember) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -89,7 +90,7 @@
"internal compiler error");
}
-TEST_F(AstStructTest, Assert_Null_Attribute) {
+TEST_F(AstStructDeathTest, Assert_Null_Attribute) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -99,7 +100,7 @@
"internal compiler error");
}
-TEST_F(AstStructTest, Assert_DifferentGenerationID_StructMember) {
+TEST_F(AstStructDeathTest, Assert_DifferentGenerationID_StructMember) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -109,7 +110,7 @@
"internal compiler error");
}
-TEST_F(AstStructTest, Assert_DifferentGenerationID_Attribute) {
+TEST_F(AstStructDeathTest, Assert_DifferentGenerationID_Attribute) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/switch_statement_test.cc b/src/tint/lang/wgsl/ast/switch_statement_test.cc
index 2105a6c..55cb080 100644
--- a/src/tint/lang/wgsl/ast/switch_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/switch_statement_test.cc
@@ -36,6 +36,7 @@
namespace {
using SwitchStatementTest = TestHelper;
+using SwitchStatementDeathTest = SwitchStatementTest;
TEST_F(SwitchStatementTest, Creation) {
auto* case_stmt = create<CaseStatement>(tint::Vector{CaseSelector(1_u)}, Block());
@@ -86,7 +87,7 @@
EXPECT_TRUE(stmt->Is<SwitchStatement>());
}
-TEST_F(SwitchStatementTest, Assert_Null_Condition) {
+TEST_F(SwitchStatementDeathTest, Assert_Null_Condition) {
using CaseStatementList = tint::Vector<const CaseStatement*, 2>;
EXPECT_DEATH_IF_SUPPORTED(
{
@@ -99,7 +100,7 @@
"internal compiler error");
}
-TEST_F(SwitchStatementTest, Assert_Null_CaseStatement) {
+TEST_F(SwitchStatementDeathTest, Assert_Null_CaseStatement) {
using CaseStatementList = tint::Vector<const CaseStatement*, 2>;
EXPECT_DEATH_IF_SUPPORTED(
{
@@ -110,7 +111,7 @@
"internal compiler error");
}
-TEST_F(SwitchStatementTest, Assert_DifferentGenerationID_Condition) {
+TEST_F(SwitchStatementDeathTest, Assert_DifferentGenerationID_Condition) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -128,7 +129,7 @@
"internal compiler error");
}
-TEST_F(SwitchStatementTest, Assert_DifferentGenerationID_CaseStatement) {
+TEST_F(SwitchStatementDeathTest, Assert_DifferentGenerationID_CaseStatement) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/templated_identifier_test.cc b/src/tint/lang/wgsl/ast/templated_identifier_test.cc
index a47a905..80bd5de 100644
--- a/src/tint/lang/wgsl/ast/templated_identifier_test.cc
+++ b/src/tint/lang/wgsl/ast/templated_identifier_test.cc
@@ -33,6 +33,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using TemplatedIdentifierTest = TestHelper;
+using TemplatedIdentifierDeathTest = TemplatedIdentifierTest;
TEST_F(TemplatedIdentifierTest, Creation) {
auto* i = Ident("ident", 1_a, Add("x", "y"), false, "x");
@@ -62,7 +63,7 @@
EXPECT_EQ(src.range.begin.column, 2u);
}
-TEST_F(TemplatedIdentifierTest, Assert_InvalidSymbol) {
+TEST_F(TemplatedIdentifierDeathTest, Assert_InvalidSymbol) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -71,7 +72,7 @@
"internal compiler error");
}
-TEST_F(TemplatedIdentifierTest, Assert_DifferentGenerationID_Symbol) {
+TEST_F(TemplatedIdentifierDeathTest, Assert_DifferentGenerationID_Symbol) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -81,7 +82,7 @@
"internal compiler error");
}
-TEST_F(TemplatedIdentifierTest, Assert_DifferentGenerationID_TemplateArg) {
+TEST_F(TemplatedIdentifierDeathTest, Assert_DifferentGenerationID_TemplateArg) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/unary_op_expression_test.cc b/src/tint/lang/wgsl/ast/unary_op_expression_test.cc
index 45b2c52..0d05557 100644
--- a/src/tint/lang/wgsl/ast/unary_op_expression_test.cc
+++ b/src/tint/lang/wgsl/ast/unary_op_expression_test.cc
@@ -33,6 +33,7 @@
namespace {
using UnaryOpExpressionTest = TestHelper;
+using UnaryOpExpressionDeathTest = UnaryOpExpressionTest;
TEST_F(UnaryOpExpressionTest, Creation) {
auto* ident = Expr("ident");
@@ -57,7 +58,7 @@
EXPECT_TRUE(u->Is<UnaryOpExpression>());
}
-TEST_F(UnaryOpExpressionTest, Assert_Null_Expression) {
+TEST_F(UnaryOpExpressionDeathTest, Assert_Null_Expression) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -66,7 +67,7 @@
"internal compiler error");
}
-TEST_F(UnaryOpExpressionTest, Assert_DifferentGenerationID_Expression) {
+TEST_F(UnaryOpExpressionDeathTest, Assert_DifferentGenerationID_Expression) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/variable_decl_statement_test.cc b/src/tint/lang/wgsl/ast/variable_decl_statement_test.cc
index 3b4640c..f626dc4 100644
--- a/src/tint/lang/wgsl/ast/variable_decl_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/variable_decl_statement_test.cc
@@ -33,6 +33,7 @@
namespace {
using VariableDeclStatementTest = TestHelper;
+using VariableDeclStatementDeathTest = VariableDeclStatementTest;
TEST_F(VariableDeclStatementTest, Creation) {
auto* var = Var("a", ty.f32());
@@ -57,7 +58,7 @@
EXPECT_TRUE(stmt->Is<VariableDeclStatement>());
}
-TEST_F(VariableDeclStatementTest, Assert_Null_Variable) {
+TEST_F(VariableDeclStatementDeathTest, Assert_Null_Variable) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -66,7 +67,7 @@
"internal compiler error");
}
-TEST_F(VariableDeclStatementTest, Assert_DifferentGenerationID_Variable) {
+TEST_F(VariableDeclStatementDeathTest, Assert_DifferentGenerationID_Variable) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/variable_test.cc b/src/tint/lang/wgsl/ast/variable_test.cc
index c24ab00..55e83a4 100644
--- a/src/tint/lang/wgsl/ast/variable_test.cc
+++ b/src/tint/lang/wgsl/ast/variable_test.cc
@@ -35,6 +35,7 @@
namespace {
using VariableTest = TestHelper;
+using VariableDeathTest = VariableTest;
TEST_F(VariableTest, Creation) {
auto* v = Var("my_var", ty.i32(), core::AddressSpace::kFunction);
@@ -75,7 +76,7 @@
EXPECT_EQ(v->source.range.end.column, 7u);
}
-TEST_F(VariableTest, Assert_Null_Name) {
+TEST_F(VariableDeathTest, Assert_Null_Name) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -84,7 +85,7 @@
"internal compiler error");
}
-TEST_F(VariableTest, Assert_DifferentGenerationID_Symbol) {
+TEST_F(VariableDeathTest, Assert_DifferentGenerationID_Symbol) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -94,7 +95,7 @@
"internal compiler error");
}
-TEST_F(VariableTest, Assert_DifferentGenerationID_Initializer) {
+TEST_F(VariableDeathTest, Assert_DifferentGenerationID_Initializer) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/ast/while_statement_test.cc b/src/tint/lang/wgsl/ast/while_statement_test.cc
index be9e07e..576e71f 100644
--- a/src/tint/lang/wgsl/ast/while_statement_test.cc
+++ b/src/tint/lang/wgsl/ast/while_statement_test.cc
@@ -35,6 +35,7 @@
namespace {
using WhileStatementTest = TestHelper;
+using WhileStatementDeathTest = WhileStatementTest;
TEST_F(WhileStatementTest, Creation) {
auto* cond = create<BinaryExpression>(core::BinaryOp::kLessThan, Expr("i"), Expr(5_u));
@@ -64,7 +65,7 @@
EXPECT_THAT(l->attributes, testing::ElementsAre(attr1, attr2));
}
-TEST_F(WhileStatementTest, Assert_Null_Cond) {
+TEST_F(WhileStatementDeathTest, Assert_Null_Cond) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -74,7 +75,7 @@
"internal compiler error");
}
-TEST_F(WhileStatementTest, Assert_Null_Body) {
+TEST_F(WhileStatementDeathTest, Assert_Null_Body) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -85,7 +86,7 @@
"internal compiler error");
}
-TEST_F(WhileStatementTest, Assert_DifferentGenerationID_Condition) {
+TEST_F(WhileStatementDeathTest, Assert_DifferentGenerationID_Condition) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
@@ -95,7 +96,7 @@
"internal compiler error");
}
-TEST_F(WhileStatementTest, Assert_DifferentGenerationID_Body) {
+TEST_F(WhileStatementDeathTest, Assert_DifferentGenerationID_Body) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b1;
diff --git a/src/tint/lang/wgsl/program/clone_context_test.cc b/src/tint/lang/wgsl/program/clone_context_test.cc
index 527a6a2..77d1b15 100644
--- a/src/tint/lang/wgsl/program/clone_context_test.cc
+++ b/src/tint/lang/wgsl/program/clone_context_test.cc
@@ -104,6 +104,7 @@
};
using ProgramCloneContextNodeTest = ::testing::Test;
+using ProgramCloneContextNodeDeathTest = ProgramCloneContextNodeTest;
TEST_F(ProgramCloneContextNodeTest, Clone) {
Allocator alloc;
@@ -1048,7 +1049,7 @@
EXPECT_EQ(cloned_root->vec[3]->name, cloned.Symbols().Get("c"));
}
-TEST_F(ProgramCloneContextNodeTest, CloneWithReplaceAll_SameTypeTwice) {
+TEST_F(ProgramCloneContextNodeDeathTest, CloneWithReplaceAll_SameTypeTwice) {
std::string node_name = TypeInfo::Of<Node>().name;
EXPECT_DEATH_IF_SUPPORTED(
@@ -1064,7 +1065,7 @@
node_name));
}
-TEST_F(ProgramCloneContextNodeTest, CloneWithReplaceAll_BaseThenDerived) {
+TEST_F(ProgramCloneContextNodeDeathTest, CloneWithReplaceAll_BaseThenDerived) {
std::string node_name = TypeInfo::Of<Node>().name;
std::string replaceable_name = TypeInfo::Of<Replaceable>().name;
@@ -1081,7 +1082,7 @@
node_name));
}
-TEST_F(ProgramCloneContextNodeTest, CloneWithReplaceAll_DerivedThenBase) {
+TEST_F(ProgramCloneContextNodeDeathTest, CloneWithReplaceAll_DerivedThenBase) {
std::string node_name = TypeInfo::Of<Node>().name;
std::string replaceable_name = TypeInfo::Of<Replaceable>().name;
@@ -1099,8 +1100,9 @@
}
using ProgramCloneContextTest = ::testing::Test;
+using ProgramCloneContextDeathTest = ProgramCloneContextTest;
-TEST_F(ProgramCloneContextTest, CloneWithReplaceAll_SymbolsTwice) {
+TEST_F(ProgramCloneContextDeathTest, CloneWithReplaceAll_SymbolsTwice) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder cloned;
@@ -1206,7 +1208,7 @@
EXPECT_EQ(cloned->generation_id, dst.ID());
}
-TEST_F(ProgramCloneContextTest, GenerationIDs_Clone_ObjectNotOwnedBySrc) {
+TEST_F(ProgramCloneContextDeathTest, GenerationIDs_Clone_ObjectNotOwnedBySrc) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder dst;
@@ -1216,10 +1218,10 @@
ctx.Clone(allocator.Create<IDNode>(GenerationID::New(), dst.ID()));
},
testing::HasSubstr(
- R"(internal compiler error: TINT_ASSERT_GENERATION_IDS_EQUAL_IF_VALID(src_id, object))"));
+ "internal compiler error: TINT_ASSERT_GENERATION_IDS_EQUAL_IF_VALID(src_id, object)"));
}
-TEST_F(ProgramCloneContextTest, GenerationIDs_Clone_ObjectNotOwnedByDst) {
+TEST_F(ProgramCloneContextDeathTest, GenerationIDs_Clone_ObjectNotOwnedByDst) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder dst;
@@ -1229,7 +1231,7 @@
ctx.Clone(allocator.Create<IDNode>(src.ID(), GenerationID::New()));
},
testing::HasSubstr(
- R"(internal compiler error: TINT_ASSERT_GENERATION_IDS_EQUAL_IF_VALID(dst, out))"));
+ "internal compiler error: TINT_ASSERT_GENERATION_IDS_EQUAL_IF_VALID(dst, out)"));
}
} // namespace
diff --git a/src/tint/lang/wgsl/program/program_test.cc b/src/tint/lang/wgsl/program/program_test.cc
index 4c91d2d..d665620 100644
--- a/src/tint/lang/wgsl/program/program_test.cc
+++ b/src/tint/lang/wgsl/program/program_test.cc
@@ -32,6 +32,7 @@
namespace {
using ProgramTest = ast::TestHelper;
+using ProgramDeathTest = ProgramTest;
TEST_F(ProgramTest, Unbuilt) {
Program program;
@@ -64,7 +65,7 @@
EXPECT_TRUE(program.IsValid());
}
-TEST_F(ProgramTest, Assert_NullGlobalVariable) {
+TEST_F(ProgramDeathTest, Assert_NullGlobalVariable) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -73,7 +74,7 @@
"internal compiler error");
}
-TEST_F(ProgramTest, Assert_NullTypeDecl) {
+TEST_F(ProgramDeathTest, Assert_NullTypeDecl) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -82,7 +83,7 @@
"internal compiler error");
}
-TEST_F(ProgramTest, Assert_Null_Function) {
+TEST_F(ProgramDeathTest, Assert_Null_Function) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
diff --git a/src/tint/lang/wgsl/resolver/resolver_helper_test.h b/src/tint/lang/wgsl/resolver/resolver_helper_test.h
index 19f239c..d754d4b 100644
--- a/src/tint/lang/wgsl/resolver/resolver_helper_test.h
+++ b/src/tint/lang/wgsl/resolver/resolver_helper_test.h
@@ -137,6 +137,7 @@
};
class ResolverTest : public TestHelper, public testing::Test {};
+using ResolverDeathTest = ResolverTest;
template <typename T>
class ResolverTestWithParam : public TestHelper, public testing::TestWithParam<T> {};
diff --git a/src/tint/lang/wgsl/resolver/resolver_test.cc b/src/tint/lang/wgsl/resolver/resolver_test.cc
index c73a75b..b052239 100644
--- a/src/tint/lang/wgsl/resolver/resolver_test.cc
+++ b/src/tint/lang/wgsl/resolver/resolver_test.cc
@@ -2086,7 +2086,7 @@
ASSERT_TRUE(r()->Resolve()) << r()->error();
}
-TEST_F(ResolverTest, ASTNodeNotReached) {
+TEST_F(ResolverDeathTest, ASTNodeNotReached) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -2097,7 +2097,7 @@
"resolver");
}
-TEST_F(ResolverTest, ASTNodeReachedTwice) {
+TEST_F(ResolverDeathTest, ASTNodeReachedTwice) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
diff --git a/src/tint/lang/wgsl/resolver/validation_test.cc b/src/tint/lang/wgsl/resolver/validation_test.cc
index 9c306f7..c0b1f87 100644
--- a/src/tint/lang/wgsl/resolver/validation_test.cc
+++ b/src/tint/lang/wgsl/resolver/validation_test.cc
@@ -61,6 +61,7 @@
using namespace tint::core::number_suffixes; // NOLINT
using ResolverValidationTest = ResolverTest;
+using ResolverValidationDeathTest = ResolverValidationTest;
class FakeStmt final : public Castable<FakeStmt, ast::Statement> {
public:
@@ -132,7 +133,7 @@
9:10 note: called by entry point 'f0')");
}
-TEST_F(ResolverValidationTest, UnhandledStmt) {
+TEST_F(ResolverValidationDeathTest, UnhandledStmt) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
@@ -163,7 +164,7 @@
EXPECT_EQ(r()->error(), R"(12:34 error: if statement condition must be bool, got f32)");
}
-TEST_F(ResolverValidationTest, Expr_ErrUnknownExprType) {
+TEST_F(ResolverValidationDeathTest, Expr_ErrUnknownExprType) {
EXPECT_DEATH_IF_SUPPORTED(
{
ProgramBuilder b;
diff --git a/src/tint/utils/containers/vector_test.cc b/src/tint/utils/containers/vector_test.cc
index c509cbb..3c94044 100644
--- a/src/tint/utils/containers/vector_test.cc
+++ b/src/tint/utils/containers/vector_test.cc
@@ -2109,7 +2109,7 @@
EXPECT_EQ(ss.str(), "[1, 2, 3]");
}
-TEST(TintVectorTest, AssertOOBs) {
+TEST(TintVectorDeathTest, AssertOOBs) {
EXPECT_DEATH_IF_SUPPORTED(
{
Vector vec{1};
@@ -2119,7 +2119,7 @@
}
#if TINT_VECTOR_MUTATION_CHECKS_ENABLED
-TEST(TintVectorTest, AssertPushWhileIterating) {
+TEST(TintVectorDeathTest, AssertPushWhileIterating) {
using V = Vector<int, 4>;
EXPECT_DEATH_IF_SUPPORTED(
{
@@ -2134,7 +2134,7 @@
"internal compiler error");
}
-TEST(TintVectorTest, AssertPopWhileIterating) {
+TEST(TintVectorDeathTest, AssertPopWhileIterating) {
using V = Vector<int, 4>;
EXPECT_DEATH_IF_SUPPORTED(
{
@@ -2149,7 +2149,7 @@
"internal compiler error");
}
-TEST(TintVectorTest, AssertClearWhileIterating) {
+TEST(TintVectorDeathTest, AssertClearWhileIterating) {
using V = Vector<int, 4>;
EXPECT_DEATH_IF_SUPPORTED(
{
@@ -2445,7 +2445,7 @@
EXPECT_EQ(ss.str(), "[1, 2, 3]");
}
-TEST(TintVectorRefTest, AssertOOBs) {
+TEST(TintVectorRefDeathTest, AssertOOBs) {
EXPECT_DEATH_IF_SUPPORTED(
{
Vector vec{1};
diff --git a/src/tint/utils/ice/ice_test.cc b/src/tint/utils/ice/ice_test.cc
index d0a992c..a20c3ca 100644
--- a/src/tint/utils/ice/ice_test.cc
+++ b/src/tint/utils/ice/ice_test.cc
@@ -32,7 +32,7 @@
namespace tint {
namespace {
-TEST(ICETest_AssertTrue_Test, Unreachable) {
+TEST(ICETest_AssertTrue_DeathTest, Unreachable) {
EXPECT_DEATH_IF_SUPPORTED(
{
if ((true)) {
@@ -46,7 +46,7 @@
TINT_ASSERT(true);
}
-TEST(ICETest_AssertTrue_Test, AssertFalse) {
+TEST(ICETest_AssertTrue_DeathTest, AssertFalse) {
EXPECT_DEATH_IF_SUPPORTED(
{
if ((true)) {
diff --git a/src/tint/utils/rtti/switch_test.cc b/src/tint/utils/rtti/switch_test.cc
index e4241ff..69d9c21 100644
--- a/src/tint/utils/rtti/switch_test.cc
+++ b/src/tint/utils/rtti/switch_test.cc
@@ -229,7 +229,7 @@
}
}
-TEST(Castable, SwitchMustMatch_NoMatchWithoutReturnValue) {
+TEST(CastableDeathTest, SwitchMustMatch_NoMatchWithoutReturnValue) {
EXPECT_DEATH_IF_SUPPORTED(
{
std::unique_ptr<Animal> frog = std::make_unique<Frog>();
@@ -242,7 +242,7 @@
testing::HasSubstr("internal compiler error: Switch() matched no cases. Type: Frog"));
}
-TEST(Castable, SwitchMustMatch_NoMatchWithReturnValue) {
+TEST(CastableDeathTest, SwitchMustMatch_NoMatchWithReturnValue) {
EXPECT_DEATH_IF_SUPPORTED(
{
std::unique_ptr<Animal> frog = std::make_unique<Frog>();
@@ -256,7 +256,7 @@
testing::HasSubstr("internal compiler error: Switch() matched no cases. Type: Frog"));
}
-TEST(Castable, SwitchMustMatch_NullptrWithoutReturnValue) {
+TEST(CastableDeathTest, SwitchMustMatch_NullptrWithoutReturnValue) {
EXPECT_DEATH_IF_SUPPORTED(
{
Switch(
@@ -268,7 +268,7 @@
testing::HasSubstr("internal compiler error: Switch() passed nullptr"));
}
-TEST(Castable, SwitchMustMatch_NullptrWithReturnValue) {
+TEST(CastableDeathTest, SwitchMustMatch_NullptrWithReturnValue) {
EXPECT_DEATH_IF_SUPPORTED(
{
int res = Switch(
diff --git a/src/tint/utils/symbol/symbol_table_test.cc b/src/tint/utils/symbol/symbol_table_test.cc
index 9328640..093fe09 100644
--- a/src/tint/utils/symbol/symbol_table_test.cc
+++ b/src/tint/utils/symbol/symbol_table_test.cc
@@ -33,6 +33,7 @@
namespace {
using SymbolTableTest = testing::Test;
+using SymbolTableDeathTest = SymbolTableTest;
TEST_F(SymbolTableTest, GeneratesSymbolForName) {
auto generation_id = GenerationID::New();
@@ -49,7 +50,7 @@
EXPECT_EQ(Symbol(1, generation_id, "name"), s.Register("name"));
}
-TEST_F(SymbolTableTest, AssertsForBlankString) {
+TEST_F(SymbolTableDeathTest, AssertsForBlankString) {
EXPECT_DEATH_IF_SUPPORTED(
{
auto generation_id = GenerationID::New();