Skip to content

Commit fb2d1fc

Browse files
arsenmjph-13
authored andcommitted
unittests: Use EXPECT_ instead of ASSERT_ in a few tests (llvm#129251)
1 parent 6c78892 commit fb2d1fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/unittests/Support/ProgramTest.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -422,21 +422,21 @@ TEST(ProgramTest, TestExecuteNegative) {
422422
bool ExecutionFailed;
423423
int RetCode = ExecuteAndWait(Executable, argv, std::nullopt, {}, 0, 0,
424424
&Error, &ExecutionFailed);
425-
ASSERT_LT(RetCode, 0) << "On error ExecuteAndWait should return 0 or "
425+
EXPECT_LT(RetCode, 0) << "On error ExecuteAndWait should return 0 or "
426426
"positive value indicating the result code";
427-
ASSERT_TRUE(ExecutionFailed);
428-
ASSERT_FALSE(Error.empty());
427+
EXPECT_TRUE(ExecutionFailed);
428+
EXPECT_FALSE(Error.empty());
429429
}
430430

431431
{
432432
std::string Error;
433433
bool ExecutionFailed;
434434
ProcessInfo PI = ExecuteNoWait(Executable, argv, std::nullopt, {}, 0,
435435
&Error, &ExecutionFailed);
436-
ASSERT_EQ(PI.Pid, ProcessInfo::InvalidPid)
436+
EXPECT_EQ(PI.Pid, ProcessInfo::InvalidPid)
437437
<< "On error ExecuteNoWait should return an invalid ProcessInfo";
438-
ASSERT_TRUE(ExecutionFailed);
439-
ASSERT_FALSE(Error.empty());
438+
EXPECT_TRUE(ExecutionFailed);
439+
EXPECT_FALSE(Error.empty());
440440
}
441441

442442
}

0 commit comments

Comments
 (0)