gstreamer/libs/gst/check/libcheck
Matthew Waters 5c3ae3893a check: fix werror build with clang
Silence -Wformat-nonliteral warnings from the internal copy of libcheck

../subprojects/gstreamer/libs/gst/check/libcheck/check.c:379:29: warning: format string is not a string literal [-Wformat-nonliteral]
    vsnprintf (buf, BUFSIZ, msg, ap);
                            ^~~
../subprojects/gstreamer/libs/gst/check/libcheck/check_error.c:48:21: warning: format string is not a string literal [-Wformat-nonliteral]
  vfprintf (stderr, fmt, args);
                    ^~~
../subprojects/gstreamer/libs/gst/check/libcheck/check_str.c:92:29: warning: format string is not a string literal [-Wformat-nonliteral]
    n = vsnprintf (p, size, fmt, ap);
                            ^~~
2019-08-26 12:42:37 +00:00
..
libcompat meson: make check and tests build on Windows with msvc 2018-01-11 09:50:24 +00:00
check.c Run gst-indent through the files 2018-11-28 05:58:53 +02:00
check.h.in Fix typos in comments and docs 2018-05-01 11:18:03 +01:00
check_error.c libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_error.h libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_impl.h Fix typos in comments and docs 2018-05-01 11:18:03 +01:00
check_list.c libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_list.h libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_log.c libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_log.h libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_msg.c libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_msg.h libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_pack.c libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_pack.h libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_print.c libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_print.h libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_run.c check: duplicate code branches 2017-07-26 15:05:07 +02:00
check_str.c libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
check_str.h libcheck: port to latest check git 2016-12-09 15:31:01 +05:30
Makefile.am check: Don't check for malloc/realloc and try to fallback 2016-12-09 17:59:53 +05:30
meson.build check: fix werror build with clang 2019-08-26 12:42:37 +00:00
README.txt check: Don't check for malloc/realloc and try to fallback 2016-12-09 17:59:53 +05:30

This is a copy of libcheck, a unit testing framework for C:

https://github.com/libcheck/check/

The last update was on 9th December, with the following commit: ba42e7de3d62ea9d3699bf0709554b3e47a8f09e

The check*.c files in this directory are the same as those in the src/
directory in upstream. The files in the libcompat/ directory are the same as
those in the lib/ directory upstream.

lib/snprintf.c was omitted since we don't run on any platforms that don't
provide snprintf and the upstream implementation is ~2000 lines.

lib/malloc.c and lib/realloc.c were omitted since we were doing fine without
them and it does a #define malloc rpl_malloc on Android because the malloc
shipped with Bionic is not GNU-compliant. rpl_malloc is provided by libcheck,
but not everything in gstreamer links against libcheck. We also don't care
about this.

Steps to sync with upstream:

1. Clone libcheck from the above git repository
2. Copy files into this directory
3. Run GNU indent on all the code
4. Fix internal #includes
5. Manually inspect the diff
6. Update configure.ac, m4/check-checks.m4, meson.build files, etc
6. Run make check, then commit and push

Any changes made to files in this directory must be submitted upstream via
a pull request: https://github.com/libcheck/check/compare

This involves creating an account on GitHub, forking libcheck/check there,
pushing the changes into a branch, and then submitting it as a pull request.