Skip to content

Commit ba5e8fc

Browse files
authored
[flang] Adjust execute_command_line intrinsic return values for AIX (NFC) (llvm#106472)
1 parent 5c019bd commit ba5e8fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flang/unittests/Runtime/CommandTest.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,14 @@ TEST_F(ZeroArguments, ECLGeneralErrorCommandErrorSync) {
348348

349349
RTNAME(ExecuteCommandLine)
350350
(*command.get(), wait, exitStat.get(), cmdStat.get(), cmdMsg.get());
351-
#ifdef _WIN32
351+
#if defined(_WIN32)
352352
CheckDescriptorEqInt<std::int64_t>(exitStat.get(), 1);
353353
CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 6);
354354
CheckDescriptorEqStr(cmdMsg.get(), "Invalid command lineXXXXXXXXX");
355+
#elif defined(_AIX)
356+
CheckDescriptorEqInt<std::int64_t>(exitStat.get(), 2);
357+
CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 6);
358+
CheckDescriptorEqStr(cmdMsg.get(), "Invalid command lineXXXXXXXXX");
355359
#else
356360
CheckDescriptorEqInt<std::int64_t>(exitStat.get(), 1);
357361
CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 3);

0 commit comments

Comments
 (0)