Home
last modified time | relevance | path

Searched refs:fail_if (Results 1 – 25 of 258) sorted by relevance

1234567891011

/third_party/curl/tests/unit/
Dunit2602.c50 fail_if(Curl_dynhds_count(&hds), "should be empty");
51 fail_if(Curl_dynhds_add(&hds, "test1", 5, "123", 3), "add failed");
52 fail_if(Curl_dynhds_add(&hds, "test2", 5, "456", 3), "add failed");
56 fail_if(TRUE, "should");
60 fail_if(TRUE, "add failed");
68 fail_if(TRUE, "add failed");
79 fail_if(Curl_dynhds_get(&hds, "test1", 4), "false positive");
91 fail_if(Curl_dynhds_add(&hds, "test1", 5, "123", 3), "add failed");
93 fail_if(Curl_dynhds_add(&hds, "t", 1, "1", 1), "add failed");
98 fail_if(Curl_dynhds_add(&hds, "test1", 5, "123", 3), "add failed");
[all …]
Dunit1654.c51 fail_if(result, "Curl_altsvc_load");
57 fail_if(!curl, "curl_easy_init");
65 fail_if(result, "Curl_altsvc_parse() failed!");
70 fail_if(result, "Curl_altsvc_parse(2) failed!");
76 fail_if(result, "Curl_altsvc_parse(3) failed!");
83 fail_if(result, "Curl_altsvc_parse(4) failed!");
90 fail_if(result, "Curl_altsvc_parse(4) failed!");
97 fail_if(result, "Curl_altsvc_parse(5) failed!");
103 fail_if(result, "Curl_altsvc_parse(6) failed!");
/third_party/gstreamer/gstreamer/tests/check/gst/
Dgstquery.c34 fail_if (query == NULL); in GST_START_TEST()
38 fail_if (format != GST_FORMAT_TIME); in GST_START_TEST()
43 fail_if (format != GST_FORMAT_TIME); in GST_START_TEST()
44 fail_if (position != 0xdeadbeaf); in GST_START_TEST()
54 fail_if (query == NULL); in GST_START_TEST()
58 fail_if (format != GST_FORMAT_TIME); in GST_START_TEST()
63 fail_if (format != GST_FORMAT_TIME); in GST_START_TEST()
64 fail_if (duration != 0xdeadbeaf); in GST_START_TEST()
73 fail_if (query == NULL); in GST_START_TEST()
80 fail_if (gst_query_add_buffering_range (query, 10, 15)); in GST_START_TEST()
[all …]
Dgstobject.c81 fail_if (object == NULL, "Failed to create instance of GstFakeObject"); in GST_START_TEST()
104 fail_if (name == NULL, "Newly created object has no name"); in GST_START_TEST()
105 fail_if (strncmp (name, "fakeobject", 10) != 0, in GST_START_TEST()
128 fail_if (name == NULL, "Random name was not assigned"); in GST_START_TEST()
129 fail_if (strncmp (name, "fakeobject", 10) != 0, in GST_START_TEST()
152 fail_if (name == NULL, "Failed to get name of GstFakeObject"); in GST_START_TEST()
153 fail_if (strcmp (name, "fake") != 0, "Name of GstFakeObject is not 'fake'"); in GST_START_TEST()
155 fail_if (count > 1, "Name change was notified multiple time"); in GST_START_TEST()
175 fail_if (strncmp (name2, "fakeobject", 10) != 0, in GST_START_TEST()
195 fail_if (gst_object_set_name (object, "broken"), in GST_START_TEST()
[all …]
Dgstplugin.c93 fail_if (unloaded_plugin == NULL, "Failed to find coreelements plugin"); in GST_START_TEST()
94 fail_if (GST_OBJECT_REFCOUNT_VALUE (unloaded_plugin) != 2, in GST_START_TEST()
99 fail_if (loaded_plugin == NULL, "Failed to load plugin"); in GST_START_TEST()
102 fail_if (GST_OBJECT_REFCOUNT_VALUE (loaded_plugin) != 2, in GST_START_TEST()
105 fail_if (GST_OBJECT_REFCOUNT_VALUE (unloaded_plugin) != 1, in GST_START_TEST()
122 fail_if (GST_OBJECT_REFCOUNT_VALUE (plugin) != 2, in GST_START_TEST()
127 fail_if (GST_OBJECT_REFCOUNT_VALUE (plugin) != 3, in GST_START_TEST()
132 fail_if (GST_OBJECT_REFCOUNT_VALUE (plugin) != 2, in GST_START_TEST()
145 fail_if (plugin == NULL, "Failed to find coreelements plugin"); in GST_START_TEST()
168 fail_if (feature == NULL, "Failed to find identity element factory"); in GST_START_TEST()
[all …]
Dgstevent.c35 fail_if (event == NULL); in GST_START_TEST()
39 fail_if (GST_EVENT_IS_SERIALIZED (event)); in GST_START_TEST()
47 fail_if (event == NULL); in GST_START_TEST()
66 fail_if (event == NULL); in GST_START_TEST()
71 fail_if (res == NULL); in GST_START_TEST()
89 fail_if (event == NULL); in GST_START_TEST()
91 fail_if (GST_EVENT_IS_UPSTREAM (event)); in GST_START_TEST()
102 fail_if (event == NULL); in GST_START_TEST()
104 fail_if (GST_EVENT_IS_UPSTREAM (event)); in GST_START_TEST()
116 fail_if (event == NULL); in GST_START_TEST()
[all …]
Dgstelementfactory.c73 fail_if (factory == NULL); in GST_START_TEST()
91 fail_if (e == NULL); in GST_START_TEST()
94 fail_if (e_name == NULL || g_strcmp0 (name, GST_OBJECT_NAME (e_name)) != 0); in GST_START_TEST()
100 fail_if (e_prop == NULL || num_buffers != nb || do_timestamp != do_ts); in GST_START_TEST()
117 fail_if (factory == NULL); in GST_START_TEST()
120 fail_if (caps == NULL); in GST_START_TEST()
122 fail_if (!res); in GST_START_TEST()
138 fail_if (factory == NULL); in GST_START_TEST()
141 fail_if (caps == NULL); in GST_START_TEST()
143 fail_if (res); in GST_START_TEST()
[all …]
Dgstmeta.c228 fail_if (buffer == NULL); in GST_START_TEST()
231 fail_if (info.data == NULL); in GST_START_TEST()
237 fail_if (meta == NULL); in GST_START_TEST()
248 fail_if (meta == NULL); in GST_START_TEST()
249 fail_if (meta->pts != 1000); in GST_START_TEST()
250 fail_if (meta->dts != 2000); in GST_START_TEST()
251 fail_if (meta->duration != 1000); in GST_START_TEST()
252 fail_if (meta->clock_rate != 1000); in GST_START_TEST()
259 fail_if (meta == NULL); in GST_START_TEST()
260 fail_if (meta->pts != 1000); in GST_START_TEST()
[all …]
Dgstpoll.c45 fail_if (set == NULL, "Failed to create a GstPoll"); in GST_START_TEST()
48 fail_if (_pipe (socks, 4096, _O_BINARY) < 0, "Could not create a pipe"); in GST_START_TEST()
50 fail_if (socketpair (PF_UNIX, SOCK_STREAM, 0, socks) < 0, in GST_START_TEST()
66 fail_if (gst_poll_fd_can_write (set, &rfd), in GST_START_TEST()
77 fail_if (gst_poll_fd_can_write (set, &rfd), in GST_START_TEST()
79 fail_if (gst_poll_fd_can_read (set, &wfd), in GST_START_TEST()
88 fail_if (gst_poll_fd_can_read (set, &rfd), in GST_START_TEST()
90 fail_if (gst_poll_fd_can_write (set, &rfd), in GST_START_TEST()
92 fail_if (gst_poll_fd_can_read (set, &wfd), in GST_START_TEST()
112 fail_if (set == NULL, "Failed to create a GstPoll"); in GST_START_TEST()
[all …]
Dgsttoc.c93 fail_if (entry_t == NULL); in CHECK_TOC()
99 fail_if (subentry_t == NULL); in CHECK_TOC()
105 fail_if (subentry_t == NULL); in CHECK_TOC()
112 fail_if (entry_t == NULL); in CHECK_TOC()
118 fail_if (subentry_t == NULL); in CHECK_TOC()
124 fail_if (subentry_t == NULL); in CHECK_TOC()
145 fail_if (toc == NULL); in GST_START_TEST()
151 fail_if (ed == NULL); in GST_START_TEST()
159 fail_if (ch == NULL); in GST_START_TEST()
171 fail_if (ch == NULL); in GST_START_TEST()
[all …]
Dgstmessage.c41 fail_if (message == NULL); in GST_START_TEST()
47 fail_if (s == NULL); in GST_START_TEST()
58 fail_if (error == NULL); in GST_START_TEST()
60 fail_if (message == NULL); in GST_START_TEST()
71 fail_if (error == NULL); in GST_START_TEST()
72 fail_if (debug == NULL); in GST_START_TEST()
90 fail_if (error == NULL); in GST_START_TEST()
95 fail_if (message == NULL); in GST_START_TEST()
106 fail_if (error == NULL); in GST_START_TEST()
107 fail_if (debug == NULL); in GST_START_TEST()
[all …]
Dgstmemory.c46 fail_if (sub == NULL, "share of memory returned NULL"); in GST_START_TEST()
58 fail_if (sub == NULL, "share memory returned NULL"); in GST_START_TEST()
70 fail_if (sub == NULL, "share of memory returned NULL"); in GST_START_TEST()
78 fail_if (sub == NULL, "share of memory returned NULL"); in GST_START_TEST()
105 fail_if (sub1 == NULL, "share of memory returned NULL"); in GST_START_TEST()
108 fail_if (sub2 == NULL, "share of memory returned NULL"); in GST_START_TEST()
110 fail_if (gst_memory_is_span (memory, sub2, NULL) == TRUE, in GST_START_TEST()
113 fail_if (gst_memory_is_span (sub1, memory, NULL) == TRUE, in GST_START_TEST()
116 fail_if (gst_memory_is_span (sub1, sub2, NULL) == FALSE, in GST_START_TEST()
151 fail_if (gst_memory_map (mem, &info, GST_MAP_WRITE)); in GST_START_TEST()
[all …]
Dgstutils.c223 fail_if (gst_util_uint64_scale_int (1, 1, 1) != 1); in GST_START_TEST()
225 fail_if (gst_util_uint64_scale_int (10, 10, 1) != 100); in GST_START_TEST()
226 fail_if (gst_util_uint64_scale_int (10, 10, 2) != 50); in GST_START_TEST()
228 fail_if (gst_util_uint64_scale_int (0, 10, 2) != 0); in GST_START_TEST()
229 fail_if (gst_util_uint64_scale_int (0, 0, 2) != 0); in GST_START_TEST()
231 fail_if (gst_util_uint64_scale_int (G_MAXUINT32, 5, 1) != G_MAXUINT32 * 5LL); in GST_START_TEST()
232 fail_if (gst_util_uint64_scale_int (G_MAXUINT32, 10, 2) != G_MAXUINT32 * 5LL); in GST_START_TEST()
234 fail_if (gst_util_uint64_scale_int (G_MAXUINT32, 1, 5) != G_MAXUINT32 / 5LL); in GST_START_TEST()
235 fail_if (gst_util_uint64_scale_int (G_MAXUINT32, 2, 10) != G_MAXUINT32 / 5LL); in GST_START_TEST()
238 fail_if (gst_util_uint64_scale_int (G_MAXUINT64 - 1, 10, in GST_START_TEST()
[all …]
Dgststructure.c64 fail_if (structure == NULL, "Could not get structure from string %s", s); in GST_START_TEST()
107 fail_if (structure == NULL, "Could not get structure from string %s", s); in GST_START_TEST()
130 fail_if (structure == NULL, "Could not get structure from string %s", s); in GST_START_TEST()
137 fail_if (structure == NULL, "Could not get structure from string %s", s); in GST_START_TEST()
144 fail_if (structure == NULL, "Could not get structure from string %s", s); in GST_START_TEST()
151 fail_if (structure == NULL, "Could not get structure from string %s", s); in GST_START_TEST()
158 fail_if (structure == NULL, "Could not get structure from string %s", s); in GST_START_TEST()
167 fail_if (structure == NULL, "Could not get structure from string %s", s); in GST_START_TEST()
172 fail_if (structure == NULL, "Could not get structure from string %s", s); in GST_START_TEST()
177 fail_if (structure == NULL, "Could not get structure from string %s", s); in GST_START_TEST()
[all …]
Dgstbin.c269 fail_if (gst_element_set_state (GST_ELEMENT (pipeline), in GST_START_TEST()
278 fail_if (message != NULL); in GST_START_TEST()
285 fail_if (message == NULL); in GST_START_TEST()
328 fail_if (gst_element_set_state (GST_ELEMENT (pipeline), in GST_START_TEST()
339 fail_if (message != NULL); in GST_START_TEST()
349 fail_if (message == NULL); in GST_START_TEST()
388 fail_if (gst_element_set_state (GST_ELEMENT (pipeline), in GST_START_TEST()
398 fail_if (message != NULL); in GST_START_TEST()
406 fail_if (message == NULL); in GST_START_TEST()
485 fail_if (src == NULL, "Could not create fakesrc"); in GST_START_TEST()
[all …]
/third_party/gstreamer/gstplugins_base/tests/check/libs/
Dprofile.c50 fail_if(profile == NULL); \
119 fail_if (sprof == NULL); in GST_START_TEST()
122 fail_if (out == NULL); in GST_START_TEST()
130 fail_if (restriction == NULL); in GST_START_TEST()
134 fail_if (sprof == NULL); in GST_START_TEST()
137 fail_if (out == NULL); in GST_START_TEST()
159 fail_if (target != NULL); in GST_START_TEST()
162 fail_if (target != NULL); in GST_START_TEST()
165 fail_if (target != NULL); in GST_START_TEST()
168 fail_if (target != NULL); in GST_START_TEST()
[all …]
Dgstglcontext.c81 fail_if (fbo == NULL, "failed to create framebuffer object"); in init()
91 fail_if (gl_tex == NULL, "failed to create texture"); in init()
94 fail_if (shader == NULL, "failed to create shader object: %s", in init()
205 fail_if (fbo2 == NULL, "failed to create framebuffer object"); in init_blit()
278 fail_if (error != NULL, "Error creating master context %s\n", in GST_START_TEST()
288 fail_if (error != NULL, "Error creating secondary context %s\n", in GST_START_TEST()
337 fail_if (i != 0); in check_wrapped()
343 fail_if (i != 1); in check_wrapped()
346 fail_if (wrapped_context->gl_vtable->TexImage2D != NULL); in check_wrapped()
348 fail_if (!ret, "error received %s\n", in check_wrapped()
[all …]
/third_party/gstreamer/gstplugins_good/tests/check/elements/
Drtptimerqueue.c79 fail_if (timer == NULL); in GST_START_TEST()
84 fail_if (next == NULL); in GST_START_TEST()
88 fail_if (timer == NULL); in GST_START_TEST()
92 fail_if (prev == NULL); in GST_START_TEST()
97 fail_if (timer == NULL); in GST_START_TEST()
101 fail_if (prev == NULL); in GST_START_TEST()
102 fail_if (next == NULL); in GST_START_TEST()
107 fail_if (timer == NULL); in GST_START_TEST()
111 fail_if (prev == NULL); in GST_START_TEST()
112 fail_if (next == NULL); in GST_START_TEST()
[all …]
Dmultifile.c105 fail_if (my_tmpdir == NULL); in GST_START_TEST()
111 fail_if (pipeline == NULL); in GST_START_TEST()
113 fail_if (mfs == NULL); in GST_START_TEST()
125 fail_if (g_remove (s) != 0); in GST_START_TEST()
131 fail_if (g_remove (my_tmpdir) != 0); in GST_START_TEST()
153 fail_if (my_tmpdir == NULL); in GST_START_TEST()
159 fail_if (pipeline == NULL); in GST_START_TEST()
161 fail_if (mfs == NULL); in GST_START_TEST()
179 fail_if (g_remove (s) != 0); in GST_START_TEST()
182 fail_if (g_remove (my_tmpdir) != 0); in GST_START_TEST()
[all …]
Drtpbin_buffer_list.c140 fail_if (buffer == NULL); in create_rtp_packet_buffer()
159 fail_if (buffer == NULL); in create_rtp_buffer_fields()
163 fail_if (ret == FALSE); in create_rtp_buffer_fields()
185 fail_if (buffer == NULL); in check_seqnum()
189 fail_if (ret == FALSE); in check_seqnum()
206 fail_if (buffer == NULL); in check_timestamp()
210 fail_if (ret == FALSE); in check_timestamp()
226 fail_if (buffer == NULL); in check_header()
231 fail_if (ret == FALSE); in check_header()
255 fail_if (buffer == NULL); in check_payload()
[all …]
Dsplitmuxsink.c53 fail_if (tmpdir == NULL); in tempdir_cleanup()
56 fail_if (d == NULL); in tempdir_cleanup()
60 fail_if (g_remove (fname) != 0, "Failed to remove tmp file %s", fname); in tempdir_cleanup()
65 fail_if (g_remove (tmpdir) != 0, "Failed to delete tmpdir %s", tmpdir); in tempdir_cleanup()
79 fail_if (d == NULL); in count_files()
237 fail_if (pipeline == NULL); in test_playback()
240 fail_if (appsink == NULL); in test_playback()
245 fail_if (fakesink2 == NULL); in test_playback()
308 fail_if (buf == NULL); in check_format_location()
380 fail_if (pipeline == NULL); in GST_START_TEST()
[all …]
/third_party/gstreamer/gstreamer/tests/check/libs/
Dbytereader.c109 fail_if (gst_byte_reader_get_uint8 (reader, &dest)); \
113 fail_if (gst_byte_reader_get_uint##bits##_##endianness (reader, &dest)); \
127 fail_if (gst_byte_reader_peek_uint8 (reader, &dest)); \
131 fail_if (gst_byte_reader_peek_uint##bits##_##endianness (reader, &dest)); \
240 fail_if (gst_byte_reader_get_int8 (reader, &dest)); \
244 fail_if (gst_byte_reader_get_int##bits##_##endianness (reader, &dest)); \
258 fail_if (gst_byte_reader_peek_int8 (reader, &dest)); \
262 fail_if (gst_byte_reader_peek_int##bits##_##endianness (reader, &dest)); \
368 fail_if (gst_byte_reader_get_float##bits##_##endianness (reader, &dest)); \
377 fail_if (gst_byte_reader_peek_float##bits##_##endianness (reader, &dest)); \
[all …]
/third_party/lwip/test/unit/dhcp/
Dtest_dhcp.c204 fail_if((pos + len) > p->tot_len); in check_pkt()
209 fail_if(p == NULL); in check_pkt()
213fail_if(memcmp(&data[pos], mem, len), "data at pos %d, len %d in packet %d did not match", pos, le… in check_pkt()
222 fail_if((startpos + len) > p->tot_len); in check_pkt_fuzzy()
227 fail_if(p == NULL); in check_pkt_fuzzy()
462 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST()
463 fail_if(memcmp(&netmask, &net_test.netmask, sizeof(ip4_addr_t))); in START_TEST()
464 fail_if(memcmp(&gw, &net_test.gw, sizeof(ip4_addr_t))); in START_TEST()
493 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST()
494 fail_if(memcmp(&netmask, &net_test.netmask, sizeof(ip4_addr_t))); in START_TEST()
[all …]
/third_party/gstreamer/gstplugins_bad/tests/check/libs/
Dmpegts.c89 fail_if (sit_section == NULL); in GST_START_TEST()
94 fail_if (data == NULL); in GST_START_TEST()
102 fail_if (sit == NULL); in GST_START_TEST()
136 fail_if (sit_section == NULL); in GST_START_TEST()
141 fail_if (data == NULL); in GST_START_TEST()
149 fail_if (sit == NULL); in GST_START_TEST()
203 fail_if (pat_section == NULL); in GST_START_TEST()
221 fail_if (data == NULL); in GST_START_TEST()
274 fail_if (pmt_section == NULL); in GST_START_TEST()
286 fail_if (desc == NULL); in GST_START_TEST()
[all …]
/third_party/gstreamer/gstreamer/tests/check/elements/
Dfakesink.c93 fail_if (sink == NULL); in GST_START_TEST()
96 fail_if (sinkpad == NULL); in GST_START_TEST()
119 fail_if (eret == FALSE); in GST_START_TEST()
137 fail_if (fret != GST_FLOW_OK); in GST_START_TEST()
154 fail_if (fret != GST_FLOW_OK); in GST_START_TEST()
173 fail_if (data == NULL); in GST_START_TEST()
187 fail_if (fret != GST_FLOW_OK); in GST_START_TEST()
203 fail_if (fret != GST_FLOW_OK); in GST_START_TEST()
212 fail_if (fret != GST_FLOW_OK); in GST_START_TEST()
221 fail_if (fret != GST_FLOW_OK); in GST_START_TEST()
[all …]

1234567891011