Now on windows (with s/if(0)/if(1)/) I get lots of:
metafile.c:740: Test failed: unexpected EMF bits: got 01, expected 0xff
metafile.c:740: Test failed: unexpected EMF bits: got 00, expected 0xff
metafile.c:740: Test failed: unexpected EMF bits: got 00, expected 0xff
...
You, uh, do realize metafiles are a vector format, right? The data isn't really going to be all 1's.
If I comment out the for loop and initialize i to 1, the test succeeds on Windows.