MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_version

Function test_version

dpdk/app/test/test_version.c:15–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15static int
16test_version(void)
17{
18 const char *version = rte_version();
19 if (version == NULL)
20 return -1;
21 printf("Version string: '%s'\n", version);
22 if (*version == '\0' ||
23 strncmp(version, RTE_VER_PREFIX, sizeof(RTE_VER_PREFIX)-1) != 0)
24 return -1;
25 return 0;
26}
27
28REGISTER_FAST_TEST(version_autotest, true, true, test_version);

Callers

nothing calls this directly

Calls 3

rte_versionFunction · 0.85
strncmpFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected