/******************************************************************************/ staticvoid
suite_test_libipm_calls_start(void)
{ int sck[2]; int istatus; struct trans *t1 = NULL; struct trans *t2 = NULL; struct trans *t3 = NULL; int fd = -1; int success = 0;
int
does_stream_contain_string(conststruct stream *s, constchar *str)
{ int len = g_strlen(str); int i; if (len > 0 && len <= s->size)
{ for (i = 0 ; i <= s->size - len; ++i)
{ /* This is not a sophisticated string search. We use a *singlecharactertesttoavoidafunctioncallfor
* every comparison */ if (str[0] == s->data[i] && g_memcmp(str, &s->data[i], len) == 0)
{ return1;
}
}
}
rv = nofile.rlim_cur; for (i = 0 ; i < nofile.rlim_cur; ++i)
{ if (fds[i].revents == POLLNVAL)
{
--rv;
}
}
g_free(fds);
return rv;
}
/******************************************************************************/ int main (void)
{ int number_failed;
SRunner *sr;
sr = srunner_create (make_suite_test_libipm_send_calls());
srunner_add_suite (sr, make_suite_test_libipm_recv_calls());
srunner_set_tap(sr, "-"); /*
* Set up console logging */ struct log_config *lc = log_config_init_for_console(LOG_LEVEL_INFO, NULL);
log_start_from_param(lc);
log_config_free(lc); /* Disable stdout buffering, as this can confuse the error
* reporting when running in libcheck fork mode */
setvbuf(stdout, NULL, _IONBF, 0);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.