projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3332e39
)
tests: caps: Add more broken caps test case
author
Seungha Yang
<seungha.yang@navercorp.com>
Tue, 11 Dec 2018 11:12:50 +0000
(20:12 +0900)
committer
Seungha Yang
<seungha.yang@navercorp.com>
Mon, 12 Nov 2018 11:12:50 +0000
(20:12 +0900)
tests/check/gst/gstcaps.c
patch
|
blob
|
history
diff --git
a/tests/check/gst/gstcaps.c
b/tests/check/gst/gstcaps.c
index
acceb6f
..
32aacff
100644
(file)
--- a/
tests/check/gst/gstcaps.c
+++ b/
tests/check/gst/gstcaps.c
@@
-1113,6
+1113,13
@@
GST_START_TEST (test_broken)
ASSERT_CRITICAL (c1 =
gst_caps_new_simple ("1#@abc", "field", G_TYPE_INT, 1, NULL));
fail_if (c1);
+
+ c1 = gst_caps_new_empty_simple ("test/broken-fraction");
+ fail_unless (c1);
+ /* denominator must be non-zero value */
+ ASSERT_CRITICAL (gst_caps_set_simple (c1, "foo", GST_TYPE_FRACTION, 1, 0,
+ NULL));
+ gst_caps_unref (c1);
}
GST_END_TEST;