tests: Fix for NetBSD with __func__.