#include #include #include "lib.h" #include "array.h" #ifdef AL_HAVE_GNU_EXTENSIONS #include "array_typed.h" #endif #include "str.h" #include "ring_buffer.h" s32 main(void) { al_rand_init(); if (!lib_tests_run()) goto fail; if (!array_tests_run()) goto fail; #ifdef AL_HAVE_GNU_EXTENSIONS if (!array_typed_tests_run()) goto fail; #endif if (!str_tests_run()) goto fail; if (!ring_buffer_tests_run()) goto fail; return EXIT_SUCCESS; fail: return EXIT_FAILURE; }