Skip to content

Commit 24e8e2e

Browse files
committed
clang format
1 parent 6279f77 commit 24e8e2e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

flang/runtime/execute.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void CheckAndStoreIntToDescriptor(
6262

6363
// If a condition occurs that would assign a nonzero value to CMDSTAT but
6464
// the CMDSTAT variable is not present, error termination is initiated.
65-
std::int64_t TerminationCheck(std::int64_t status, const Descriptor *cmdstat,
65+
std::int64_t TerminationCheck(std::int64_t status, const Descriptor *cmdstat,
6666
const Descriptor *cmdmsg, Terminator &terminator) {
6767
#ifdef _WIN32
6868
// On WIN32 API std::system returns exit status directly
@@ -164,7 +164,8 @@ void RTNAME(ExecuteCommandLine)(const Descriptor &command, bool wait,
164164
if (wait) {
165165
// either wait is not specified or wait is true: synchronous mode
166166
std::int64_t status{std::system(newCmd)};
167-
std::int64_t exitStatusVal{TerminationCheck(status, cmdstat, cmdmsg, terminator)};
167+
std::int64_t exitStatusVal{
168+
TerminationCheck(status, cmdstat, cmdmsg, terminator)};
168169
// If sync, assigned processor-dependent exit status. Otherwise unchanged
169170
CheckAndStoreIntToDescriptor(exitstat, exitStatusVal, terminator);
170171
} else {

flang/unittests/Runtime/CommandTest.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,18 +379,19 @@ TEST_F(ZeroArguments, ECLNotExecutedCommandErrorSync) {
379379
CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 3);
380380

381381
// removing the file should have no error on Linux, have error on Windows
382-
OwningPtr<Descriptor> commandClean{CharDescriptor("rm -f NotExecutedCommandFile")};
382+
OwningPtr<Descriptor> commandClean{
383+
CharDescriptor("rm -f NotExecutedCommandFile")};
383384
OwningPtr<Descriptor> cmdMsgNoErr{CharDescriptor("No Error")};
384385
RTNAME(ExecuteCommandLine)
385386
(*commandClean.get(), wait, exitStat.get(), cmdStat.get(), cmdMsgNoErr.get());
386387
#ifdef _WIN32
387388
CheckDescriptorEqInt<std::int64_t>(exitStat.get(), 1);
388389
CheckDescriptorEqStr(cmdMsgNoErr.get(), "Invalid ");
389-
CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 3);
390+
CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 3);
390391
#else
391392
CheckDescriptorEqInt<std::int64_t>(exitStat.get(), 0);
392393
CheckDescriptorEqStr(cmdMsgNoErr.get(), "No Error");
393-
CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 0);
394+
CheckDescriptorEqInt<std::int64_t>(cmdStat.get(), 0);
394395
#endif
395396
}
396397

0 commit comments

Comments
 (0)