From: Thomas Vander Stichele Date: Sat, 20 Aug 2005 12:43:18 +0000 (+0000) Subject: put some make-up on the gstevent test X-Git-Tag: RELEASE-0_9_2~120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22aef1b98f5bf7b955ec5f9701a1b9344b8d921a;p=platform%2Fupstream%2Fgstreamer.git put some make-up on the gstevent test Original commit message from CVS: put some make-up on the gstevent test --- diff --git a/check/Makefile.am b/check/Makefile.am index 9786e73..366cb79 100644 --- a/check/Makefile.am +++ b/check/Makefile.am @@ -37,7 +37,7 @@ TESTS = $(top_builddir)/tools/gst-register \ gst/gstbus \ gst/gstcaps \ gst/gstelement \ - gst/gstevents \ + gst/gstevent \ gst/gstghostpad \ gst/gstiterator \ gst/gstmessage \ diff --git a/check/gst/gstevents.c b/check/gst/gstevent.c similarity index 98% rename from check/gst/gstevents.c rename to check/gst/gstevent.c index d152a06..fddbb49 100644 --- a/check/gst/gstevents.c +++ b/check/gst/gstevent.c @@ -1,7 +1,7 @@ /* GStreamer * Copyright (C) 2005 Jan Schmidt * - * gstevents.c: Unit test for event handling + * gstevent.c: Unit test for event handling * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -20,7 +20,7 @@ */ -#include "../gstcheck.h" +#include GST_START_TEST (create_custom_events) { @@ -184,7 +184,9 @@ GST_START_TEST (create_custom_events) } } -GST_END_TEST GTimeVal sent_event_time; +GST_END_TEST; + +GTimeVal sent_event_time; GstEvent *got_event_before_q, *got_event_after_q; GTimeVal got_event_time; @@ -328,7 +330,7 @@ GST_START_TEST (send_custom_events) &sent_event_time) < G_USEC_PER_SEC / 2, "GST_EVENT_CUSTOM_BOTH_OOB took to long to reach source"); - /* In-band downstream events are expected to take at least 1 second + /* In-band downstream events are expected to take at least 1 second * to traverse the the queue */ test_event (GST_EVENT_CUSTOM_DS, srcpad, FALSE); fail_unless (timediff (&got_event_time, @@ -348,7 +350,10 @@ GST_START_TEST (send_custom_events) gst_object_unref (pipeline); } -GST_END_TEST Suite * gstevents_suite (void) +GST_END_TEST; + +Suite * +gstevents_suite (void) { Suite *s = suite_create ("GstEvent"); TCase *tc_chain = tcase_create ("customevents"); diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am index 9786e73..366cb79 100644 --- a/tests/check/Makefile.am +++ b/tests/check/Makefile.am @@ -37,7 +37,7 @@ TESTS = $(top_builddir)/tools/gst-register \ gst/gstbus \ gst/gstcaps \ gst/gstelement \ - gst/gstevents \ + gst/gstevent \ gst/gstghostpad \ gst/gstiterator \ gst/gstmessage \ diff --git a/tests/check/gst/gstevents.c b/tests/check/gst/gstevent.c similarity index 98% rename from tests/check/gst/gstevents.c rename to tests/check/gst/gstevent.c index d152a06..fddbb49 100644 --- a/tests/check/gst/gstevents.c +++ b/tests/check/gst/gstevent.c @@ -1,7 +1,7 @@ /* GStreamer * Copyright (C) 2005 Jan Schmidt * - * gstevents.c: Unit test for event handling + * gstevent.c: Unit test for event handling * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -20,7 +20,7 @@ */ -#include "../gstcheck.h" +#include GST_START_TEST (create_custom_events) { @@ -184,7 +184,9 @@ GST_START_TEST (create_custom_events) } } -GST_END_TEST GTimeVal sent_event_time; +GST_END_TEST; + +GTimeVal sent_event_time; GstEvent *got_event_before_q, *got_event_after_q; GTimeVal got_event_time; @@ -328,7 +330,7 @@ GST_START_TEST (send_custom_events) &sent_event_time) < G_USEC_PER_SEC / 2, "GST_EVENT_CUSTOM_BOTH_OOB took to long to reach source"); - /* In-band downstream events are expected to take at least 1 second + /* In-band downstream events are expected to take at least 1 second * to traverse the the queue */ test_event (GST_EVENT_CUSTOM_DS, srcpad, FALSE); fail_unless (timediff (&got_event_time, @@ -348,7 +350,10 @@ GST_START_TEST (send_custom_events) gst_object_unref (pipeline); } -GST_END_TEST Suite * gstevents_suite (void) +GST_END_TEST; + +Suite * +gstevents_suite (void) { Suite *s = suite_create ("GstEvent"); TCase *tc_chain = tcase_create ("customevents");