Skip to content

Commit 5048fab

Browse files
authored
[Support] Delete FormatVariadicTest Validate sub-test (#106570)
- The subtest, if enabled correctly, will fail with assert in Debug builds and validation is disabled in Release builds. - Hence deleting the test to fix test failures in CI.
1 parent 4ee2ad2 commit 5048fab

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

llvm/unittests/Support/FormatVariadicTest.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -710,16 +710,6 @@ TEST(FormatVariadicTest, FormatFilterRange) {
710710
EXPECT_EQ("1, 2, 3", formatv("{0}", Range).str());
711711
}
712712

713-
#ifdef NDEBUG // Disable the test in debug builds where it will assert.
714-
TEST(FormatVariadicTest, Validate) {
715-
std::string Str = formatv("{0}", 1, 2).str();
716-
EXPECT_THAT(Str, HasSubstr("Unexpected number of arguments"));
717-
718-
Str = formatv("{0} {2}", 1, 2, 3).str();
719-
EXPECT_THAT(Str, HasSubstr("eplacement indices have holes"));
720-
}
721-
#endif // NDEBUG
722-
723713
namespace {
724714

725715
enum class Base { First };

0 commit comments

Comments
 (0)