[flang-commits] [flang] [flang] Match the length size in comparison (NFC) (PR #78302)
via flang-commits
flang-commits at lists.llvm.org
Wed Jan 17 05:02:11 PST 2024
https://github.com/madanial0 updated https://github.com/llvm/llvm-project/pull/78302
>From c3f2c30f6d6d71c2c02f2c8844bba5e9a925a411 Mon Sep 17 00:00:00 2001
From: Mark Danial <madanial at dixon.rtp.raleigh.ibm.com>
Date: Tue, 16 Jan 2024 10:40:31 -0500
Subject: [PATCH] [flang] Match the length size in comparison (NFC)
---
flang/unittests/Runtime/CommandTest.cpp | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/flang/unittests/Runtime/CommandTest.cpp b/flang/unittests/Runtime/CommandTest.cpp
index 5ae0f1c72f92c3..4c3618d0e3d903 100644
--- a/flang/unittests/Runtime/CommandTest.cpp
+++ b/flang/unittests/Runtime/CommandTest.cpp
@@ -319,8 +319,8 @@ TEST_F(ZeroArguments, ECLValidCommandAndPadSync) {
(*command.get(), wait, exitStat.get(), cmdStat.get(), cmdMsg.get());
std::string spaces(cmdMsg->ElementBytes(), ' ');
- CheckDescriptorEqInt(exitStat.get(), 0);
- CheckDescriptorEqInt(cmdStat.get(), 0);
+ CheckDescriptorEqInt<std::int64_t>(exitStat.get(), 0);
+ CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 0);
CheckDescriptorEqStr(cmdMsg.get(), "No change");
}
@@ -334,8 +334,8 @@ TEST_F(ZeroArguments, ECLValidCommandStatusSetSync) {
RTNAME(ExecuteCommandLine)
(*command.get(), wait, exitStat.get(), cmdStat.get(), cmdMsg.get());
- CheckDescriptorEqInt(exitStat.get(), 0);
- CheckDescriptorEqInt(cmdStat.get(), 0);
+ CheckDescriptorEqInt<std::int64_t>(exitStat.get(), 0);
+ CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 0);
CheckDescriptorEqStr(cmdMsg.get(), "No change");
}
@@ -351,9 +351,9 @@ TEST_F(ZeroArguments, ECLInvalidCommandErrorSync) {
#ifdef _WIN32
CheckDescriptorEqInt(exitStat.get(), 1);
#else
- CheckDescriptorEqInt(exitStat.get(), 127);
+ CheckDescriptorEqInt<std::int64_t>(exitStat.get(), 127);
#endif
- CheckDescriptorEqInt(cmdStat.get(), 3);
+ CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 3);
CheckDescriptorEqStr(cmdMsg.get(), "Invalid command lineXXXX");
}
@@ -387,7 +387,7 @@ TEST_F(ZeroArguments, ECLValidCommandAndExitStatNoChangeAndCMDStatusSetAsync) {
(*command.get(), wait, exitStat.get(), cmdStat.get(), cmdMsg.get());
CheckDescriptorEqInt(exitStat.get(), 404);
- CheckDescriptorEqInt(cmdStat.get(), 0);
+ CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 0);
CheckDescriptorEqStr(cmdMsg.get(), "No change");
}
More information about the flang-commits
mailing list