aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2021-12-22 11:24:02 -0800
committerMichael Jones <michaelrj@google.com>2021-12-22 11:40:08 -0800
commit79abf89303757cbd5a273525a4b922b3fefd2a88 (patch)
treeeb3731f9e535427a190d297147ddddfbc6710766
parenta2120f6b449103f517e541abb77839a1e3e12272 (diff)
downloadllvm-79abf89303757cbd5a273525a4b922b3fefd2a88.zip
llvm-79abf89303757cbd5a273525a4b922b3fefd2a88.tar.gz
llvm-79abf89303757cbd5a273525a4b922b3fefd2a88.tar.bz2
[libc][obvious] fix formatting mistake
I missed two instances of "SetUp" being replaced by "set_up" and "TearDown" being replaced by "tear_down" when finalizing the formatting change. This fixes that. Differential Revision: https://reviews.llvm.org/D116178
-rw-r--r--libc/benchmarks/LibcBenchmarkTest.cpp4
-rw-r--r--libc/test/src/signal/sigprocmask_test.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/libc/benchmarks/LibcBenchmarkTest.cpp b/libc/benchmarks/LibcBenchmarkTest.cpp
index e4afab5..c9b21e4 100644
--- a/libc/benchmarks/LibcBenchmarkTest.cpp
+++ b/libc/benchmarks/LibcBenchmarkTest.cpp
@@ -50,9 +50,9 @@ public:
}
protected:
- void set_up() override { Options.Log = BenchmarkLog::Full; }
+ void SetUp() override { Options.Log = BenchmarkLog::Full; }
- void tear_down() override {
+ void TearDown() override {
// We make sure all the expected measurements were performed.
if (MaybeTimepoints)
EXPECT_THAT(*MaybeTimepoints, IsEmpty());
diff --git a/libc/test/src/signal/sigprocmask_test.cpp b/libc/test/src/signal/sigprocmask_test.cpp
index 8fe3f03..e646362 100644
--- a/libc/test/src/signal/sigprocmask_test.cpp
+++ b/libc/test/src/signal/sigprocmask_test.cpp
@@ -21,9 +21,9 @@ class LlvmLibcSignalTest : public __llvm_libc::testing::Test {
sigset_t oldSet;
public:
- void set_up() override { __llvm_libc::sigprocmask(0, nullptr, &oldSet); }
+ void SetUp() override { __llvm_libc::sigprocmask(0, nullptr, &oldSet); }
- void tear_down() override {
+ void TearDown() override {
__llvm_libc::sigprocmask(SIG_SETMASK, &oldSet, nullptr);
}
};