ladybird/Tests/LibC
Ben Wiederhake f890b70eae Tests: Prefer TRY_OR_FAIL() and MUST() over EXPECT(!.is_error())
Note that in some cases (in particular SQL::Result and PDFErrorOr),
there is no Formatter defined for the error type, hence TRY_OR_FAIL
cannot work as-is. Furthermore, this commit leaves untouched the places
where MUST could be replaced by TRY_OR_FAIL.

Inspired by:
https://github.com/SerenityOS/serenity/pull/18710#discussion_r1186892445
2023-05-14 15:39:38 -06:00
..
CMakeLists.txt LibC+Tests: Simplify getpwuid_r() and getpwnam_r() and add tests 2022-11-19 11:11:13 +01:00
TestAbort.cpp Tests: Remove already-completed fixme 2023-01-07 10:01:37 -07:00
TestAssert.cpp LibC: Allow multiple includes of <assert.h> 2021-12-23 17:53:46 -08:00
TestCType.cpp Tests: Add tests for <ctype.h> functions declared in the C Standard 2022-06-30 12:34:16 +01:00
TestIo.cpp Tests: Prefer TRY_OR_FAIL() and MUST() over EXPECT(!.is_error()) 2023-05-14 15:39:38 -06:00
TestLibCDirEnt.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
TestLibCExec.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
TestLibCInodeWatcher.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
TestLibCMkTemp.cpp Tests: Prefer TRY_OR_FAIL() and MUST() over EXPECT(!.is_error()) 2023-05-14 15:39:38 -06:00
TestLibCSetjmp.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
TestLibCString.cpp LibC: Set saved_str to null in strtok_r if no tokens were found 2022-03-08 23:30:47 +01:00
TestLibCTime.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
TestMalloc.cpp Everywhere: Remove "LibC/" includes, add lint-rule against it 2023-01-07 10:01:37 -07:00
TestMath.cpp AK+Everywhere: Add AK_COMPILER_{GCC,CLANG} and use them most places 2022-10-04 23:35:07 +01:00
TestMemalign.cpp Everywhere: Remove "LibC/" includes, add lint-rule against it 2023-01-07 10:01:37 -07:00
TestMemmem.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TestMkDir.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TestPthreadCancel.cpp Tests: Add a test for pthread_cancel 2022-07-22 10:07:15 -07:00
TestPthreadCleanup.cpp Tests: Move the LibPthread tests to the correct namespace 2022-07-19 11:00:35 +01:00
TestPThreadPriority.cpp Tests: Add pthread scheduler priority tests 2022-10-27 11:30:19 +01:00
TestPthreadRWLocks.cpp Tests: Move the LibPthread tests to the correct namespace 2022-07-19 11:00:35 +01:00
TestPthreadSpinLocks.cpp Tests: Move the LibPthread tests to the correct namespace 2022-07-19 11:00:35 +01:00
TestPwd.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TestQsort.cpp Tests: Use AK::shuffle() for shuffling 2023-01-20 17:45:33 +00:00
TestRaise.cpp LibTest: Add EXPECT_CRASH_WITH_SIGNAL 2021-12-19 14:22:06 -08:00
TestRealpath.cpp AK: Remove StringBuilder::build() in favor of to_deprecated_string() 2023-01-27 20:38:49 +00:00
TestScanf.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
TestSearch.cpp Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
TestSnprintf.cpp AK+Everywhere: Change AK::fill_with_random to accept a Bytes object 2023-04-03 15:53:49 +02:00
TestStackSmash.cpp Everywhere: Fix spelling mistakes 2022-01-07 15:44:42 +01:00
TestStdio.cpp Tests: Move sprintf test from AK/ to LibC/ 2022-07-04 21:46:02 +02:00
TestStrlcpy.cpp AK+Everywhere: Change AK::fill_with_random to accept a Bytes object 2023-04-03 15:53:49 +02:00
TestStrtodAccuracy.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TestWchar.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TestWctype.cpp Tests: Only test truthiness for iswctype 2021-10-24 22:40:11 -07:00