Lines Matching +full:end +full:- +full:failure
1 //===-- Implementation of the base class for libc unittests ---------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
19 // This need not be a class as all it has is a single read-write state variable.
50 for (auto I = S.rbegin(), End = S.rend(); I != End; ++I, Value >>= 4) { in describeValue() local
52 *I = Mod < 10 ? '0' + Mod : 'a' + Mod - 10; in describeValue()
62 size_t OffsetLength = OpString.size() > 2 ? OpString.size() - 2 : 0; in explainDifference()
65 std::cout << File << ":" << Line << ": FAILURE\n" in explainDifference()
85 Ctx->markFail(); in test()
92 Ctx->markFail(); in test()
99 Ctx->markFail(); in test()
106 Ctx->markFail(); in test()
113 Ctx->markFail(); in test()
120 Ctx->markFail(); in test()
124 Ctx->markFail(); in test()
133 Test *Test::End = nullptr; member in __llvm_libc::testing::Test
136 if (End == nullptr) { in addTest()
138 End = T; in addTest()
142 End->Next = T; in addTest()
143 End = T; in addTest()
149 for (Test *T = Start; T != nullptr; T = T->Next, ++TestCount) { in runTests()
150 const char *TestName = T->getName(); in runTests()
156 T->SetUp(); in runTests()
157 T->setContext(&Ctx); in runTests()
158 T->Run(); in runTests()
159 T->TearDown(); in runTests()
173 << " PASS: " << TestCount - FailCount << ' ' in runTests()
257 Ctx->markFail(); in testMatch()
258 std::cout << File << ":" << Line << ": FAILURE\n" in testMatch()
271 Ctx->markFail(); in testProcessKilled()
272 std::cout << File << ":" << Line << ": FAILURE\n" << error << '\n'; in testProcessKilled()
277 Ctx->markFail(); in testProcessKilled()
278 std::cout << File << ":" << Line << ": FAILURE\n" in testProcessKilled()
284 Ctx->markFail(); in testProcessKilled()
285 std::cout << File << ":" << Line << ": FAILURE\n" in testProcessKilled()
293 if (Signal == -1 || KilledBy == Signal) in testProcessKilled()
297 Ctx->markFail(); in testProcessKilled()
298 std::cout << File << ":" << Line << ": FAILURE\n" in testProcessKilled()
313 Ctx->markFail(); in testProcessExits()
314 std::cout << File << ":" << Line << ": FAILURE\n" << error << '\n'; in testProcessExits()
319 Ctx->markFail(); in testProcessExits()
320 std::cout << File << ":" << Line << ": FAILURE\n" in testProcessExits()
326 Ctx->markFail(); in testProcessExits()
327 std::cout << File << ":" << Line << ": FAILURE\n" in testProcessExits()
338 Ctx->markFail(); in testProcessExits()
339 std::cout << File << ":" << Line << ": FAILURE\n" in testProcessExits()