summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward.hervey@collabora.co.uk>2011-01-31 16:05:34 +0100
committerEdward Hervey <bilboed@bilboed.com>2011-02-09 11:01:15 +0100
commit1c91a255a57653b5964469c786ff4094818292fd (patch)
tree8b269a5f77357cd6427ac7023fdc364177561193
parent07767da07a7f26b77bae2d73d59875e23f4b8037 (diff)
check: More debugging and state checking
-rw-r--r--tests/check/gnl/gnlcomposition.c6
-rw-r--r--tests/check/gnl/gnloperation.c24
2 files changed, 27 insertions, 3 deletions
diff --git a/tests/check/gnl/gnlcomposition.c b/tests/check/gnl/gnlcomposition.c
index 7115a8d..cb91a0f 100644
--- a/tests/check/gnl/gnlcomposition.c
+++ b/tests/check/gnl/gnlcomposition.c
@@ -368,4 +368,8 @@ GST_START_TEST (test_no_more_pads_race)
+ GST_DEBUG ("Adding composition to pipeline");
+
gst_bin_add_many (GST_BIN (pipeline), composition, fakesink, NULL);
+ GST_DEBUG ("Setting pipeline to PAUSED");
+
fail_if (gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PAUSED)
@@ -384,2 +388,4 @@ GST_START_TEST (test_no_more_pads_race)
+ GST_DEBUG ("Adding second source");
+
/* FIXME: maybe slow down the videotestsrc steaming thread */
diff --git a/tests/check/gnl/gnloperation.c b/tests/check/gnl/gnloperation.c
index ec6ce89..25d25cd 100644
--- a/tests/check/gnl/gnloperation.c
+++ b/tests/check/gnl/gnloperation.c
@@ -18,2 +18,10 @@ GST_START_TEST (test_simple_operation)
+ /* TOPOLOGY
+ *
+ * 0 1 2 3 4 5 | Priority
+ * ----------------------------------------------------------------------------
+ * [-- oper --] | 0
+ * [------------- source -------------] | 1
+ * */
+
/*
@@ -1024,3 +1032,3 @@ GST_START_TEST (test_complex_operations)
- GST_DEBUG ("Setting pipeline to NULL");
+ GST_DEBUG ("Setting pipeline to READY");
@@ -1033,2 +1041,7 @@ GST_START_TEST (test_complex_operations)
+ /* Elements should all be in the READY state */
+ check_state_simple (source1, GST_STATE_READY);
+ check_state_simple (source2, GST_STATE_READY);
+ check_state_simple (oper, GST_STATE_READY);
+
/* Expected segments */
@@ -1257,3 +1270,3 @@ GST_START_TEST (test_complex_operations_bis)
- GST_DEBUG ("Setting pipeline to NULL");
+ GST_DEBUG ("Setting pipeline to READY");
@@ -1264,3 +1277,8 @@ GST_START_TEST (test_complex_operations_bis)
- GST_DEBUG ("Resetted pipeline to READY");
+ GST_DEBUG ("Resetted pipeline to READY, checking state of elements");
+
+ /* Elements should all be in the READY state */
+ check_state_simple (source1, GST_STATE_READY);
+ check_state_simple (source2, GST_STATE_READY);
+ check_state_simple (oper, GST_STATE_READY);