Explorar o código

actually register the tempfile removal atexit

Git-Dch: Ignore
David Kalnischkies %!s(int64=12) %!d(string=hai) anos
pai
achega
9aaa45283b
Modificáronse 1 ficheiros con 1 adicións e 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);