[flang-commits] [flang] [flang] Update CommandTest for AIX (NFC) (PR #118403)

Kelvin Li via flang-commits flang-commits at lists.llvm.org
Mon Dec 2 14:07:22 PST 2024


https://github.com/kkwli created https://github.com/llvm/llvm-project/pull/118403

With the change in https://github.com/llvm/llvm-project/commit/e335563806e0466f33ecce80a9fd5a39a3aead47, the behavior for `ECLGeneralErrorCommandErrorSync` on AIX is no longer different from that on Linux.

>From 9a8f9238af3fc5833abb82ca16f1e5e23ce794fe Mon Sep 17 00:00:00 2001
From: Kelvin Li <kli at ca.ibm.com>
Date: Mon, 2 Dec 2024 17:02:33 -0500
Subject: [PATCH] [flang] Update CommandTest for AIX (NFC)

---
 flang/unittests/Runtime/CommandTest.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/flang/unittests/Runtime/CommandTest.cpp b/flang/unittests/Runtime/CommandTest.cpp
index 05287d80e14f58..ecb325330f1ad1 100644
--- a/flang/unittests/Runtime/CommandTest.cpp
+++ b/flang/unittests/Runtime/CommandTest.cpp
@@ -352,9 +352,6 @@ TEST_F(ZeroArguments, ECLGeneralErrorCommandErrorSync) {
 #if defined(_WIN32)
   CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 6);
   CheckDescriptorEqStr(cmdMsg.get(), "Invalid command lineXXXXXXXXX");
-#elif defined(_AIX)
-  CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 6);
-  CheckDescriptorEqStr(cmdMsg.get(), "Invalid command lineXXXXXXXXX");
 #else
   CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 3);
   CheckDescriptorEqStr(cmdMsg.get(), "Command line execution failed");



More information about the flang-commits mailing list