Преглед изворни кода

actually register the tempfile removal atexit

Git-Dch: Ignore
David Kalnischkies пре 12 година
родитељ
комит
9aaa45283b
1 измењених фајлова са 1 додато и 0 уклоњено
  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);