test: rewrite asprintf unit test to avoid undefined behavior
test: rewrite asprintf unit test to avoid undefined behavior

Passing a union type to snprintf caused unpredictable results on arm32v6
due to its undefined nature.

Snaipe/Criterion,Snaipe/Criterion,Snaipe/Criterion,Snaipe/Criterion,Snaipe/Criterion