Skip to content

Commit f3d051f

Browse files
committed
Updated test class for simplicity.
1 parent 704804b commit f3d051f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

cpp/src/gandiva/target_datalayout_test.cc

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,9 @@
2323

2424
namespace gandiva {
2525

26-
class TestTargetDataLayout : public ::testing::Test {
27-
protected:
28-
void SetUp() override {}
29-
};
30-
3126
// Test that verifies the target data layout string representation
3227
// is populated.
33-
TEST_F(TestTargetDataLayout, VerifyDataLayoutForArchitecture) {
28+
TEST(TestTargetDataLayout, VerifyDataLayoutForArchitecture) {
3429
ASSERT_OK_AND_ASSIGN(auto generator, LLVMGenerator::Make(TestConfiguration(), false));
3530

3631
llvm::Module* module = generator->module();
@@ -39,6 +34,6 @@ TEST_F(TestTargetDataLayout, VerifyDataLayoutForArchitecture) {
3934
const llvm::DataLayout& data_layout = module->getDataLayout();
4035
std::string data_layout_str = data_layout.getStringRepresentation();
4136

42-
EXPECT_FALSE(data_layout_str.empty());
37+
ASSERT_FALSE(data_layout_str.empty());
4338
}
4439
} // namespace gandiva

0 commit comments

Comments
 (0)