Explorar el Código

actually register the tempfile removal atexit

Git-Dch: Ignore
David Kalnischkies hace 12 años
padre
commit
9aaa45283b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      test/libapt/sourcelist_test.cc

+ 1 - 0
test/libapt/sourcelist_test.cc

@@ -36,6 +36,7 @@ int main(int argc, char *argv[])
       ;
 
    FileFd fd;
+   atexit(remove_tmpfile);
    tempfile = strdup("apt-test.XXXXXXXX");
    tempfile_fd = mkstemp(tempfile);