Blame tests/check/generic/clock-selection.c

Packit 971217
/* GStreamer
Packit 971217
 *
Packit 971217
 * unit test for clock selection
Packit 971217
 *
Packit 971217
 * Copyright (C) <2005> Wim Taymans <wim at fluendo dot com>
Packit 971217
 *
Packit 971217
 * This library is free software; you can redistribute it and/or
Packit 971217
 * modify it under the terms of the GNU Library General Public
Packit 971217
 * License as published by the Free Software Foundation; either
Packit 971217
 * version 2 of the License, or (at your option) any later version.
Packit 971217
 *
Packit 971217
 * This library is distributed in the hope that it will be useful,
Packit 971217
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 971217
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 971217
 * Library General Public License for more details.
Packit 971217
 *
Packit 971217
 * You should have received a copy of the GNU Library General Public
Packit 971217
 * License along with this library; if not, write to the
Packit 971217
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 971217
 * Boston, MA 02110-1301, USA.
Packit 971217
 */
Packit 971217
Packit 971217
#ifdef HAVE_CONFIG_H
Packit 971217
#include "config.h"
Packit 971217
#endif
Packit 971217
Packit 971217
#include <gst/check/gstcheck.h>
Packit 971217
Packit 971217
GST_START_TEST (test_add)
Packit 971217
{
Packit 971217
  GstElement *pipeline;
Packit 971217
  GstStateChangeReturn ret;
Packit 971217
Packit 971217
  pipeline = gst_pipeline_new ("pipeline");
Packit 971217
  fail_unless (pipeline != NULL, "could not create pipeline");
Packit 971217
Packit 971217
  ret = gst_element_set_state (pipeline, GST_STATE_READY);
Packit 971217
  fail_unless (ret == GST_STATE_CHANGE_SUCCESS, "could not set to READY");
Packit 971217
Packit 971217
  /* cleanup */
Packit 971217
  gst_element_set_state (pipeline, GST_STATE_NULL);
Packit 971217
  gst_object_unref (pipeline);
Packit 971217
}
Packit 971217
Packit 971217
GST_END_TEST;
Packit 971217
Packit 971217
static Suite *
Packit 971217
clocks_suite (void)
Packit 971217
{
Packit 971217
  Suite *s = suite_create ("clocks");
Packit 971217
  TCase *tc_chain = tcase_create ("general");
Packit 971217
Packit 971217
  suite_add_tcase (s, tc_chain);
Packit 971217
  tcase_add_test (tc_chain, test_add);
Packit 971217
Packit 971217
  return s;
Packit 971217
}
Packit 971217
Packit 971217
GST_CHECK_MAIN (clocks);