Tim-Philipp Müller
a10ca2ee13
check: use _exit() instead of exit() in fail_unless() so we exit immediately
...
exit() will call atexit handlers, which may try to
clean up things or wait for things to get cleaned up,
which we don't want or need. We just want to stop
and let the parent know about the failure as quickly
as possible in case fork() is used.
Fixes timeouts on assert failures in checks where
an exit handler waits for things to stop, but they
don't stop because they haven't been shut down,
and they haven't been shut down because there's no
simple way to do so on failures.
http://sourceforge.net/p/check/patches/50/
2014-05-07 10:44:34 +01:00
Antoine Jacoutot
3e24bbefba
libs: g-ir-scanner: do not hardcode libtool path
...
https://bugzilla.gnome.org/show_bug.cgi?id=726571
2014-04-17 09:26:20 +01:00
Edward Hervey
145517aa64
check: Fix exported symbol name
...
it's _template and not _templ
2014-04-16 07:59:27 +02:00
Sebastian Dröge
917a033d04
check: Add new API to set up pads from non-static pad templates
2014-04-15 12:58:59 +02:00
Tim-Philipp Müller
ed9d0381b2
testclock: replace newly-added GstTestClockIDList structure with a simple GList
...
Keep it simple. Likely also makes things easier for bindings,
and efficiency clearly has not been a consideration given how
the existing code handled these lists.
2014-04-12 15:33:50 +01:00
Tim-Philipp Müller
2e4900ba94
docs: testclock: fix up Since markers
2014-04-12 15:33:46 +01:00
Tim-Philipp Müller
8d4f245942
testclock: add back gst_test_clock_wait_for_pending_id_count()
...
.. but deprecate it. ABI stability and all that.
It's a dangerous and racy function to use.
2014-04-12 15:33:43 +01:00
Tim-Philipp Müller
f30ab21ba7
testclock: remove unused variable
...
Fixes compiler warning.
2014-04-12 15:33:36 +01:00
Havard Graff
3892cc4c2d
testclock: add support for waiting and releasing multiple GstClockIDs
...
In order to be deterministic, multiple waiting GstClockIDs needs to be
released at the same time, or else one can get into the situation that
the one being released first can add itself back again before the next
one waiting is released.
Test added for new API and old tests rewritten to comply.
2014-04-12 15:33:31 +01:00
Tim-Philipp Müller
8924782dd4
Revert "check: only call setpgid on valid child PIDs"
...
This reverts commit b9313afc75
.
This should be fixed in upstream libcheck instead. We want
to keep diff of our local copy to upstream libcheck
to a minimum.
2014-04-07 17:47:30 +01:00
Vincent Penquerc'h
b9313afc75
check: only call setpgid on valid child PIDs
...
Coverity 206186
2014-04-07 15:40:45 +01:00
Stefan Sauer
6fc23cd016
check: also use the glob on GST_CHECKS when forcing to run broken tests
...
GST_CHECKS can be simply "test*" to run run all tests (including those that are
marked broken). Update the sparse comments a bit to tell how this works.
2014-02-19 11:04:17 +01:00
Tim-Philipp Müller
5e7a7aeaf1
check: add support for blacklisting checks via GST_CHECKS_IGNORE
2014-02-09 16:39:53 +00:00
Sebastian Rasmussen
53ae1b2c9c
docs: Fix typos in function/object descriptions
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=720029
2013-12-07 17:11:12 +00:00
Sebastian Rasmussen
b40fa2b8c3
docs: cosmetic changes in references/decriptions
...
* fix typo GstBufferFlag -> GstBufferFlags
* fix typo GstFeatures -> GstCapsFeatures
* fix typo GstAllocatorParams -> GstAllocationParams
* fix typo GstContrlSources -> GstControlSource
* do not refer to gstcheck as an object
* make references gtk_init() and tcase_set_timeout() not be references
* gst_element_get_pad() renamed gst_element_get_static_pad()
* gst_clock_id_wait_async_full() renamed gst_clock_id_wait_async()
* _drop_element() is really gst_queue_array_drop_element()
* gst_pad_accept_caps() was removed, do not refer to it
* separate GST_META_TAG_MEMORY_STR declaration from description
* do not describe removed gst_collect_pads_collect()
* correctly link to GstElementClass' virtual set_context()
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=719614
2013-12-02 21:01:08 +00:00
Wim Taymans
cba26c9ed9
tests: handle unscheduled entries correctly
...
Make the testclock return GST_CLOCK_UNSCHEDULED when an unscheduled entry is
used for gst_clock_wait() or gst_clock_wait_async().
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=708605
2013-09-23 11:47:14 +02:00
Tim-Philipp Müller
0e66790134
check: testclock: fix function guards
...
Should be g_return_*() not g_assert(), even if it's for tests only.
2013-09-19 17:12:14 +01:00
Tim-Philipp Müller
cc4ba028ff
check: testclock: don't put code with side-effects in g_assert()
...
Fixes unit test failures when -DG_DISABLE_ASSERT is used.
https://bugzilla.gnome.org/show_bug.cgi?id=706551
2013-09-19 16:43:18 +01:00
Jonas Holmberg
3c4873458e
check: Call gst_deinit() at exit of all processes
2013-08-16 10:21:19 +01:00
Edward Hervey
0bfc375a54
check: Don't use nodist headers on gir scanner
...
Just creates noise and bogus symbols
2013-08-14 07:21:06 +02:00
Kjartan Maraas
280f557380
docs: some small gtk-doc markup fixes
...
https://bugzilla.gnome.org/show_bug.cgi?id=705156
2013-07-30 23:33:28 +01:00
Thibault Saunier
259e7c30a0
libcheck: Escape strings in the generated xml files
...
This is copy pasted from upstream libcheck
2013-07-23 16:02:01 -04:00
Olivier Crête
75aa2bd86f
check: Change stream_id parameter name to match GtkDoc
2013-07-01 20:07:03 -04:00
Jonas Holmberg
0ea8748c6b
check: Added gst_check_setup_events_with_stream_id()
...
Added a new function gst_check_setup_events_with_stream_id(), since
gst_check_setup_events() does not work with multiple pads.
https://bugzilla.gnome.org/show_bug.cgi?id=703377
2013-07-01 15:54:11 +02:00
Sebastian Dröge
516611bc33
check: Fix event handling in gst_check_element_push_buffer_list()
2013-05-15 11:22:25 +02:00
Nicolas Dufresne
a1866e64c5
check: Add helper that sends initial events
...
https://bugzilla.gnome.org/show_bug.cgi?id=700033
2013-05-10 09:23:28 +02:00
Tim-Philipp Müller
b48400b7a4
check: set CK_TIMEOUT_MULTIPLIER on ARM
...
https://bugzilla.gnome.org/show_bug.cgi?id=695599
2013-04-27 11:49:52 +01:00
Tim-Philipp Müller
e2b09b1ab9
check: run skipped tests if explicitly requested via GST_CHECKS
...
If a test that's disabled with tcase_skip_broken_test() is listed
in the GST_CHECKS environment variable, run it anyway.
2013-04-18 00:19:23 +01:00
Tim-Philipp Müller
22b7c0bf58
check: add some more fail_unless_*() macros for convenience
...
API: fail_unless_equals_int_hex
API: assert_equals_int_hex
API: fail_unless_equals_int64_hex
API: assert_equals_int64_hex
API: fail_unless_equals_uint64_hex
API: assert_equals_uint64_hex
API: fail_unless_equals_pointer
API: assert_equals_pointer
2013-02-19 17:40:20 +00:00
Tim-Philipp Müller
64eee27ebc
Use GST_*_1_0 environment variables everywhere
...
The _1_0 suffixed environment variables override the
non-suffixed ones, so if we're in an environment that
sets the _1_0 suffixed ones, such as jhbuild, we need
to set those to make sure ours actually always get
used.
2013-01-15 13:47:32 +00:00
Sebastian Dröge
e58dabc750
libs: Use foo/foo.h as single-include header consistently everywhere
...
https://bugzilla.gnome.org/show_bug.cgi?id=688785
2012-12-12 16:44:14 +00:00
Tim-Philipp Müller
b9386d7659
testclock: remove unnecessary include
2012-11-23 13:34:24 +00:00
Evan Nemerson
1afb1f12ef
libs: Add missing single include headers and use them in GIRs
2012-11-21 11:00:40 +01:00
Tim-Philipp Müller
fa368f2aa3
testclock: port to new GLib threading API
2012-11-14 10:55:15 +00:00
Tim-Philipp Müller
c6cc50e6de
testclock: minor cleanups, add since markers for gtk-doc
...
https://bugzilla.gnome.org/show_bug.cgi?id=683012
2012-11-13 22:43:04 +00:00
Sebastian Rasmussen
4eeb471e11
check: allow GstTestClock to handle clock notifications
...
API: gst_test_clock_peek_id_count()
API: gst_test_clock_has_id()
API: gst_test_clock_peek_next_pending_id()
API: gst_test_clock_wait_for_next_pending_id()
API: gst_test_clock_wait_for_pending_id_count()
API: gst_test_clock_process_next_clock_id()
API: gst_test_clock_get_next_entry_time()
https://bugzilla.gnome.org/show_bug.cgi?id=683012
2012-11-13 21:47:01 +00:00
Tim-Philipp Müller
77005be192
check: add dependency on gstcheck header files for exports.sym
...
So exports.sym gets updated correctly, and our new symbols get
exported correctly, which makes g-ir-scanner much happier in
terms of linking.
https://bugzilla.gnome.org/show_bug.cgi?id=683012
2012-11-13 21:46:32 +00:00
Sebastian Rasmussen
e58da2a22d
check: add GstTestClock as a deterministic clock for testing
...
API: GstTestClock
API: gst_test_clock_new()
API: gst_test_clock_new_with_start_time()
API: gst_test_clock_set_time()
API: gst_test_clock_advance_time()
https://bugzilla.gnome.org/show_bug.cgi?id=683012
2012-11-13 21:19:57 +00:00
Tim-Philipp Müller
666c8c11c6
Fix FSF address
...
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-03 20:44:48 +00:00
Tim-Philipp Müller
073c09afe0
g-i: fix "can't resolve libraries to shared libraries: gstcheck-1.0" build error
...
Revert --library=libfoo-1.0.la -> --library=foo-1.0 change made
in previous commit. Turns out that was wrong, despite what the
man page says.
https://bugzilla.gnome.org/show_bug.cgi?id=603710
2012-10-29 13:27:55 +00:00
Tim-Philipp Müller
21a74a6b79
libs: g-i: avoid multiple libraries in the shared-library tag
...
Using multiple libraries causes problems for the C# bindings and
will for similiar languages such as Java when there are bindings
for them.
Also change --library=libgstfoo-X.la to --library=gstfoo-X as
the man page suggests it should be done.
https://bugzilla.gnome.org/show_bug.cgi?id=679315
2012-10-28 17:20:10 +00:00
Sebastian Dröge
1042857f33
configure: Properly check for pthread
...
The old check failed on Android for example.
2012-10-22 15:05:24 +02:00
Tim-Philipp Müller
7eb64ad7a9
check: fix FIXME printing for tcase_skip_broken_test()
2012-09-23 19:56:43 +01:00
Tim-Philipp Müller
ca90ea6e55
Remove GST_USE_UNSTABLE_API guard and defines
2012-09-17 13:35:26 +01:00
Mark Nauwelaerts
9454c8c626
check: remove glib deprecation compatibility trickery
2012-09-12 13:02:06 +02:00
Mark Nauwelaerts
bb4860d961
check: port to the new GLib thread API
2012-09-12 13:01:18 +02:00
Wim Taymans
00c6fa74f5
events: remove STREAM_CONFIG
...
We won't be able to implement this so it's better to move it out of the way.
2012-09-11 16:29:12 +02:00
Tim-Philipp Müller
1c3ade2d0f
consistencychecker: add some more details to failure messages
...
Mention pad where the problem occured, and the event name.
2012-08-12 19:39:46 +01:00
Tim-Philipp Müller
11ce044cc4
consistencychecker: print which event we received before stream-start
2012-08-06 20:08:07 +01:00
Tim-Philipp Müller
c0f1ff5f79
check: add tcase_skip_broken_test() define
...
Skips broken tests but logs an ERROR-level message to
draw attention to that fact.
2012-08-05 17:16:27 +01:00