Skip to content

Commit

Permalink
Fixing Windows build by disabling TEST(init_from) with MSVC (motis-pr…
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C authored Jan 15, 2025
1 parent 368fdcb commit 5bef419
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/init_from_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ struct b {
int y_;
};

#ifndef _MSC_VER // This use case does not work with MSVC
TEST(init_from, init_from) {
struct test {};

Expand Down Expand Up @@ -55,3 +56,4 @@ TEST(init_from, init_from) {
auto tgt1 = utl::init_from<a>(src);
EXPECT_EQ(tgt1->str_, src.str_.get());
};
#endif

0 comments on commit 5bef419

Please sign in to comment.