Przeglądaj źródła

actually register the tempfile removal atexit

Git-Dch: Ignore
David Kalnischkies 12 lat temu
rodzic
commit
9aaa45283b
1 zmienionych plików z 1 dodań i 0 usunięć
  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);