Просмотр исходного кода

actually register the tempfile removal atexit

Git-Dch: Ignore
David Kalnischkies лет назад: 12
Родитель
Сommit
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);