--- a/gstreamer_core/tsrc/check/gst/gstsegment/src/gstsegment.c Wed Mar 24 17:58:42 2010 -0500
+++ b/gstreamer_core/tsrc/check/gst/gstsegment/src/gstsegment.c Wed Mar 24 18:04:17 2010 -0500
@@ -1,24 +1,15 @@
-/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
-*
-* This library is free software; you can redistribute it and/or
-* modify it under the terms of the GNU Lesser General Public
-* License as published by the Free Software Foundation; either
-* version 2 of the License, or (at your option) any later version.
-*
-* This library is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this library; if not, write to the
-* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-* Boston, MA 02111-1307, USA.
-*
-* Description:
-*
-*/
+ /*
+ * Copyright © 2008 Nokia Corporation.
+ * This material, including documentation and any related
+ * computer programs, is protected by copyright controlled by
+ * Nokia Corporation. All rights are reserved. Copying,
+ * including reproducing, storing, adapting or translating, any
+ * or all of this material requires the prior written consent of
+ * Nokia Corporation. This material also contains confidential
+ * information which may not be disclosed to others without the
+ * prior written consent of Nokia Corporation.
+ * ============================================================================
+ */
/* GStreamer
* Copyright (C) 2005 Jan Schmidt <thaytan@mad.scientist.com>
@@ -70,11 +61,20 @@
void create_xml(int result)
{
+
if(result)
+ {
assert_failed = 1;
-
+ }
+
testResultXml(xmlfile);
close_log_file();
+
+ if(result)
+ {
+ exit (-1);
+ }
+
}
void segment_seek_nosize()
@@ -1595,7 +1595,7 @@
/* accumulated 100 of previous segment to make 200 */
fail_unless (segment.accum == 200);
- fail_unless (segment.last_stop == 0);
+ fail_unless (segment.last_stop == 200);
fail_unless (segment.duration == -1);
@@ -1651,7 +1651,7 @@
fail_unless (segment.accum == 400);
- fail_unless (segment.last_stop == 0);
+ fail_unless (segment.last_stop == 200);
fail_unless (segment.duration == -1);
@@ -1944,7 +1944,7 @@
fail_unless (segment.accum == 0);
- fail_unless (segment.last_stop == 0);
+ fail_unless (segment.last_stop == 200);
fail_unless (segment.duration == -1);
@@ -1982,7 +1982,7 @@
fail_unless (segment.accum == 50);
- fail_unless (segment.last_stop == 0);
+ fail_unless (segment.last_stop == 150);
fail_unless (segment.duration == -1);
@@ -2016,7 +2016,7 @@
fail_unless (segment.accum == 50);
- fail_unless (segment.last_stop == 100);
+ fail_unless (segment.last_stop == 150);
fail_unless (segment.duration == -1);
@@ -2067,7 +2067,7 @@
fail_unless (segment.accum == 0);
- fail_unless (segment.last_stop == 0);
+ fail_unless (segment.last_stop == 200);
fail_unless (segment.duration == -1);
@@ -2105,7 +2105,7 @@
fail_unless (segment.accum == 0);
- fail_unless (segment.last_stop == 150);
+ fail_unless (segment.last_stop == 200);
fail_unless (segment.duration == -1);