Update clar to fcbed04 (Merge pull request #123 from pks-gitlab/pks-sandbox-ubsan, 2025-09-10). The most significant changes since the last version include: - Fixed platform support for HP-UX. - Fixes for how clar handles the `-q` flag. - A couple of leak fixes for reported clar errors. - A new `cl_invoke()` function that retains line information. - New infrastructure to create temporary directories. - Improved printing of error messages so that all lines are now properly indented. - Proper selftests for the clar. Most of these changes are somewhat irrelevant to us, but neither do we have to adjust to any of these changes, either. What _is_ interesting to us though is especially the fixed support for HP-UX, and eventually we may also want to use `cl_invoke()`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
28 lines
713 B
C
28 lines
713 B
C
/*
|
|
* Copyright (c) Vicent Marti. All rights reserved.
|
|
*
|
|
* This file is part of clar, distributed under the ISC license.
|
|
* For full terms see the included COPYING file.
|
|
*/
|
|
|
|
#include "clar.h"
|
|
|
|
/*
|
|
* Minimal main() for clar tests.
|
|
*
|
|
* Modify this with any application specific setup or teardown that you need.
|
|
* The only required line is the call to `clar_test(argc, argv)`, which will
|
|
* execute the test suite. If you want to check the return value of the test
|
|
* application, main() should return the same value returned by clar_test().
|
|
*/
|
|
|
|
#ifdef _WIN32
|
|
int __cdecl main(int argc, char *argv[])
|
|
#else
|
|
int main(int argc, char *argv[])
|
|
#endif
|
|
{
|
|
/* Run the test suite */
|
|
return clar_test(argc, argv);
|
|
}
|