소스 검색

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;
    FileFd fd;
+   atexit(remove_tmpfile);
    tempfile = strdup("apt-test.XXXXXXXX");
    tempfile = strdup("apt-test.XXXXXXXX");
    tempfile_fd = mkstemp(tempfile);
    tempfile_fd = mkstemp(tempfile);