MCPcopy Create free account
hub / github.com/corosync/corosync / test_hc_cb

Function test_hc_cb

test/testsam.c:543–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543static int test_hc_cb (void)
544{
545 cs_error_t res;
546 printf ("%s %d\n", __FUNCTION__, ++test_hc_cb_count);
547
548 res = sam_data_store (&test_hc_cb_count, sizeof (test_hc_cb_count));
549 if (res != CS_OK)
550 return 1;
551
552 if (test_hc_cb_count > 10)
553 return 1;
554
555 return 0;
556}
557/*
558 * Test event driven healtchecking.
559 */

Callers

nothing calls this directly

Calls 1

sam_data_storeFunction · 0.85

Tested by

no test coverage detected