The test suite runs sniproxy as in the foreground as an unprivileged user, so we need to gaurd this with `if (getuid() == 0)` otherwise it exits when it fails to drop privileges.