[test] Add self-tests for snprintf()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
Merge branch 'master' into osimages