X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flibpspp%2Fzip-test.c;h=e132cb93da5299983a35438bf4d7da00b4d39949;hb=513a8d92d1679e51701c579d66a912b531e4ec7d;hp=eded13e8bf67dccefeab4a547776716c96807c13;hpb=57531cdd0b00b297859d70b3c8ea8fcd4ba5acbd;p=pspp diff --git a/tests/libpspp/zip-test.c b/tests/libpspp/zip-test.c index eded13e8bf..e132cb93da 100644 --- a/tests/libpspp/zip-test.c +++ b/tests/libpspp/zip-test.c @@ -30,7 +30,6 @@ #include #include -#include "xalloc.h" /* Exit with a failure code. (Place a breakpoint on this function while debugging.) */ @@ -96,6 +95,7 @@ main (int argc, char **argv) { fwrite (buf, x, 1, fp); } + zip_member_finish (zm); fclose (fp); if ( x < 0) { @@ -105,7 +105,7 @@ main (int argc, char **argv) } zip_reader_destroy (zr); } - else + else exit (1); return 0;