selftests/nolibc: make result alignment more robust

Move the check of the existing length into the function so it can't be
forgotten by the caller.

Also hardcode the padding character as only spaces are ever used.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
This commit is contained in:
Thomas Weißschuh 2023-11-22 08:27:59 +01:00
commit b9e64724cd