[flang-commits] [flang] 67782d2 - [flang] Remove duplicate tests. (#77059)
via flang-commits
flang-commits at lists.llvm.org
Mon Jan 8 03:59:52 PST 2024
Author: SiHuaN
Date: 2024-01-08T19:59:48+08:00
New Revision: 67782d2de5ea9c8653b8f0110237a3c355291c0e
URL: https://github.com/llvm/llvm-project/commit/67782d2de5ea9c8653b8f0110237a3c355291c0e
DIFF: https://github.com/llvm/llvm-project/commit/67782d2de5ea9c8653b8f0110237a3c355291c0e.diff
LOG: [flang] Remove duplicate tests. (#77059)
Added:
Modified:
flang/unittests/Runtime/ExternalIOTest.cpp
Removed:
################################################################################
diff --git a/flang/unittests/Runtime/ExternalIOTest.cpp b/flang/unittests/Runtime/ExternalIOTest.cpp
index 76fdb6cb68ae95..13327964e12a48 100644
--- a/flang/unittests/Runtime/ExternalIOTest.cpp
+++ b/flang/unittests/Runtime/ExternalIOTest.cpp
@@ -931,10 +931,6 @@ TEST(ExternalIOTests, BigUnitNumbers) {
static_cast<std::int64_t>(std::numeric_limits<ExternalUnit>::min()) - 1;
EXPECT_EQ(IONAME(CheckUnitNumberInRange64)(unit64Ok, true), IostatOk);
EXPECT_EQ(IONAME(CheckUnitNumberInRange64)(unit64Ok, false), IostatOk);
- EXPECT_EQ(
- IONAME(CheckUnitNumberInRange64)(unit64Bad, true), IostatUnitOverflow);
- EXPECT_EQ(
- IONAME(CheckUnitNumberInRange64)(unit64Bad2, true), IostatUnitOverflow);
EXPECT_EQ(
IONAME(CheckUnitNumberInRange64)(unit64Bad, true), IostatUnitOverflow);
EXPECT_EQ(
@@ -945,7 +941,7 @@ TEST(ExternalIOTests, BigUnitNumbers) {
std::snprintf(expectedMsg, n, "UNIT number %jd is out of range",
static_cast<std::intmax_t>(unit64Bad));
EXPECT_DEATH(
- IONAME(CheckUnitNumberInRange64)(2147483648, false), expectedMsg);
+ IONAME(CheckUnitNumberInRange64)(unit64Bad, false), expectedMsg);
for (auto i{std::strlen(expectedMsg)}; i < n; ++i) {
expectedMsg[i] = ' ';
}
More information about the flang-commits
mailing list