• Home
Name Date Size #Lines LOC

..--

BazelFilePath.cppD04-Jul-2025923 2913

CMakeLists.txtD04-Jul-20254.5 KiB191175

CmakeFilePath.cppD04-Jul-2025719 2411

ErrnoSetterMatcher.hD04-Jul-20255.8 KiB189144

ExecuteFunction.hD04-Jul-20251.5 KiB5434

ExecuteFunctionUnix.cppD04-Jul-20252.4 KiB8357

FEnvSafeTest.cppD04-Jul-20253 KiB8862

FEnvSafeTest.hD04-Jul-20253.8 KiB10550

FPExceptMatcher.cppD04-Jul-20251.6 KiB5937

FPExceptMatcher.hD04-Jul-20252.1 KiB7042

FPMatcher.hD04-Jul-202520.9 KiB422350

GTest.hD04-Jul-2025761 2712

HermeticTestUtils.cppD04-Jul-20255.4 KiB15383

LibcDeathTestExecutors.cppD04-Jul-20253.2 KiB11286

LibcTest.cppD04-Jul-20259.2 KiB301241

LibcTest.hD04-Jul-202521.2 KiB509340

LibcTestMain.cppD04-Jul-20251.9 KiB6132

MemoryMatcher.cppD04-Jul-20252.1 KiB8666

MemoryMatcher.hD04-Jul-20252.6 KiB7346

PlatformDefs.hD04-Jul-2025575 176

PrintfMatcher.cppD04-Jul-20253.4 KiB10585

PrintfMatcher.hD04-Jul-20251.4 KiB4223

README.mdD04-Jul-2025836 2416

RoundingModeUtils.cppD04-Jul-20251.4 KiB5338

RoundingModeUtils.hD04-Jul-20251.1 KiB3922

ScanfMatcher.cppD04-Jul-20253 KiB10481

ScanfMatcher.hD04-Jul-20251.4 KiB4223

StringUtils.hD04-Jul-20251.4 KiB3922

Test.hD04-Jul-20252.3 KiB5117

TestLogger.cppD04-Jul-20253.2 KiB9165

TestLogger.hD04-Jul-2025925 3013

ZxTest.hD04-Jul-20251.6 KiB4421

README.md

1# The LLVM libc unit test framework
2
3This directory contains a lightweight implementation of a
4[gtest](https://github.com/google/googletest) like unit test framework for LLVM
5libc.
6
7## Why not gtest?
8
9While gtest is great, featureful and time tested, it uses the C and C++
10standard libraries. Hence, using it to test LLVM libc (which is also an
11implementation of the C standard libraries) causes various kinds of
12mixup/conflict problems.
13
14## How is it different from gtest?
15
16LLVM libc's unit test framework is much less featureful as compared to gtest.
17But, what is available strives to be exactly like gtest.
18
19## Will it be made as featureful as gtest in future?
20
21It is not clear if LLVM libc needs/will need every feature of gtest. We only
22intend to extend it on an _as needed_ basis. Hence, it might never be as
23featureful as gtest.
24