]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_errno.c
add FreeBSD support
[dpdk.git] / app / test / test_errno.c
index 0af4f78e6ce798b0f0cec3f1f95434e0a40e9b1f..24065e5b0d77b40931c3388ba616e9eedb0c5af9 100644 (file)
@@ -49,7 +49,12 @@ test_errno(void)
 {
        const char *rte_retval;
        const char *libc_retval;
+#ifdef RTE_EXEC_ENV_BSDAPP
+       /* BSD has a colon in the string, unlike linux */
+       const char unknown_code_result[] = "Unknown error: %d";
+#else
        const char unknown_code_result[] = "Unknown error %d";
+#endif
        char expected_libc_retval[sizeof(unknown_code_result)+3];
 
        /* use a small selection of standard errors for testing */