Reformat new test files with Stroustrup style
All checks were successful
libakerror CI Build / cmake_build (push) Successful in 2m38s

Apply emacs CC-mode "stroustrup" style (c-basic-offset 4, indent-tabs-mode t)
to the test files added in the previous commit, matching the existing house
style. Whitespace only; no behavioral change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-27 16:35:32 -04:00
parent 4daa411f3f
commit e5f761662c
2 changed files with 10 additions and 10 deletions

View File

@@ -66,19 +66,19 @@ static int __attribute__((unused)) akerr_slots_in_use(void)
return n; return n;
} }
#define AKERR_CHECK(cond) \ #define AKERR_CHECK(cond) \
do { \ do { \
if ( !(cond) ) { \ if ( !(cond) ) { \
fprintf(stderr, "CHECK FAILED: %s at %s:%d\n", \ fprintf(stderr, "CHECK FAILED: %s at %s:%d\n", \
#cond, __FILE__, __LINE__); \ #cond, __FILE__, __LINE__); \
return 1; \ return 1; \
} \ } \
} while ( 0 ) } while ( 0 )
#define AKERR_CHECK_CONTAINS(needle) \ #define AKERR_CHECK_CONTAINS(needle) \
AKERR_CHECK(strstr(akerr_capture_buf, (needle)) != NULL) AKERR_CHECK(strstr(akerr_capture_buf, (needle)) != NULL)
#define AKERR_CHECK_NOT_CONTAINS(needle) \ #define AKERR_CHECK_NOT_CONTAINS(needle) \
AKERR_CHECK(strstr(akerr_capture_buf, (needle)) == NULL) AKERR_CHECK(strstr(akerr_capture_buf, (needle)) == NULL)
#endif // AKERR_TEST_CAPTURE_H #endif // AKERR_TEST_CAPTURE_H

View File

@@ -26,7 +26,7 @@ akerr_ErrorContext *run(int status)
} CLEANUP { } CLEANUP {
} PROCESS(e) { } PROCESS(e) {
} HANDLE(e, AKERR_KEY) } HANDLE(e, AKERR_KEY)
HANDLE_GROUP(e, AKERR_INDEX) { HANDLE_GROUP(e, AKERR_INDEX) {
group_fired++; group_fired++;
} HANDLE(e, AKERR_IO) { } HANDLE(e, AKERR_IO) {
other_fired++; other_fired++;