[llvm-branch-commits] [libc] bfbbb62 - [libc][NFC] Use ASSERT_EQ instead of EXPECT_EQ in fenv/exception_status_test
Siva Chandra Reddy via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jan 18 21:44:45 PST 2021
Author: Siva Chandra Reddy
Date: 2021-01-18T21:38:11-08:00
New Revision: bfbbb62b22f8ba7cabd3b4dece4e72f62b2d972b
URL: https://github.com/llvm/llvm-project/commit/bfbbb62b22f8ba7cabd3b4dece4e72f62b2d972b
DIFF: https://github.com/llvm/llvm-project/commit/bfbbb62b22f8ba7cabd3b4dece4e72f62b2d972b.diff
LOG: [libc][NFC] Use ASSERT_EQ instead of EXPECT_EQ in fenv/exception_status_test
Added:
Modified:
libc/test/src/fenv/exception_status_test.cpp
Removed:
################################################################################
diff --git a/libc/test/src/fenv/exception_status_test.cpp b/libc/test/src/fenv/exception_status_test.cpp
index 193bc58298e1..0706b5525c00 100644
--- a/libc/test/src/fenv/exception_status_test.cpp
+++ b/libc/test/src/fenv/exception_status_test.cpp
@@ -26,28 +26,28 @@ TEST(ExceptionStatusTest, RaiseAndTest) {
FE_UNDERFLOW};
for (int e : excepts) {
int r = __llvm_libc::feraiseexcept(e);
- EXPECT_EQ(r, 0);
+ ASSERT_EQ(r, 0);
int s = __llvm_libc::fetestexcept(e);
- EXPECT_EQ(s, e);
+ ASSERT_EQ(s, e);
r = __llvm_libc::feclearexcept(e);
- EXPECT_EQ(r, 0);
+ ASSERT_EQ(r, 0);
s = __llvm_libc::fetestexcept(e);
- EXPECT_EQ(s, 0);
+ ASSERT_EQ(s, 0);
}
for (int e1 : excepts) {
for (int e2 : excepts) {
int e = e1 | e2;
int r = __llvm_libc::feraiseexcept(e);
- EXPECT_EQ(r, 0);
+ ASSERT_EQ(r, 0);
int s = __llvm_libc::fetestexcept(e);
- EXPECT_EQ(s, e);
+ ASSERT_EQ(s, e);
r = __llvm_libc::feclearexcept(e);
- EXPECT_EQ(r, 0);
+ ASSERT_EQ(r, 0);
s = __llvm_libc::fetestexcept(e);
- EXPECT_EQ(s, 0);
+ ASSERT_EQ(s, 0);
}
}
@@ -56,14 +56,14 @@ TEST(ExceptionStatusTest, RaiseAndTest) {
for (int e3 : excepts) {
int e = e1 | e2 | e3;
int r = __llvm_libc::feraiseexcept(e);
- EXPECT_EQ(r, 0);
+ ASSERT_EQ(r, 0);
int s = __llvm_libc::fetestexcept(e);
- EXPECT_EQ(s, e);
+ ASSERT_EQ(s, e);
r = __llvm_libc::feclearexcept(e);
- EXPECT_EQ(r, 0);
+ ASSERT_EQ(r, 0);
s = __llvm_libc::fetestexcept(e);
- EXPECT_EQ(s, 0);
+ ASSERT_EQ(s, 0);
}
}
}
@@ -74,14 +74,14 @@ TEST(ExceptionStatusTest, RaiseAndTest) {
for (int e4 : excepts) {
int e = e1 | e2 | e3 | e4;
int r = __llvm_libc::feraiseexcept(e);
- EXPECT_EQ(r, 0);
+ ASSERT_EQ(r, 0);
int s = __llvm_libc::fetestexcept(e);
- EXPECT_EQ(s, e);
+ ASSERT_EQ(s, e);
r = __llvm_libc::feclearexcept(e);
- EXPECT_EQ(r, 0);
+ ASSERT_EQ(r, 0);
s = __llvm_libc::fetestexcept(e);
- EXPECT_EQ(s, 0);
+ ASSERT_EQ(s, 0);
}
}
}
@@ -94,14 +94,14 @@ TEST(ExceptionStatusTest, RaiseAndTest) {
for (int e5 : excepts) {
int e = e1 | e2 | e3 | e4 | e5;
int r = __llvm_libc::feraiseexcept(e);
- EXPECT_EQ(r, 0);
+ ASSERT_EQ(r, 0);
int s = __llvm_libc::fetestexcept(e);
- EXPECT_EQ(s, e);
+ ASSERT_EQ(s, e);
r = __llvm_libc::feclearexcept(e);
- EXPECT_EQ(r, 0);
+ ASSERT_EQ(r, 0);
s = __llvm_libc::fetestexcept(e);
- EXPECT_EQ(s, 0);
+ ASSERT_EQ(s, 0);
}
}
}
@@ -109,7 +109,7 @@ TEST(ExceptionStatusTest, RaiseAndTest) {
}
int r = __llvm_libc::feraiseexcept(FE_ALL_EXCEPT);
- EXPECT_EQ(r, 0);
+ ASSERT_EQ(r, 0);
int s = __llvm_libc::fetestexcept(FE_ALL_EXCEPT);
- EXPECT_EQ(s, FE_ALL_EXCEPT);
+ ASSERT_EQ(s, FE_ALL_EXCEPT);
}
More information about the llvm-branch-commits
mailing list