test: Fix tests for compilation on Windows
authorAndrea Canciani <ranma42@gmail.com>
Tue, 22 Feb 2011 20:46:37 +0000 (21:46 +0100)
committerAndrea Canciani <ranma42@gmail.com>
Mon, 28 Feb 2011 09:38:02 +0000 (10:38 +0100)
commit11305b4ecdd36a17592c5c75de9157874853ab20
tree89a3de5188e065ca42f4a7426701076fb1b70aed
parent20ed723a5a42fb8636bc9a5f32974dec1b66a785
test: Fix tests for compilation on Windows

The Microsoft C compiler cannot handle subobject initialization and
Win32 does not provide snprintf.

Work around these limitations by using normal struct initialization
and using sprintf (a manual check shows that the buffer size is
sufficient).
test/composite.c
test/fetch-test.c
test/trap-crasher.c