8162419: closed/com/oracle/jfr/runtime/TestVMInfoEvent.sh failing after JDK-8155968

Under error conditions, always return -1 and perform null termination regardless of the behavior of underlying vsnprintf() implementation.

Reviewed-by: dholmes, cjplummer
3 files changed