summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-01-15 16:14:23 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2014-01-15 16:14:23 +0100
commit9aaa45283b14c3c81641f3f3e38157a267b1e8f7 (patch)
treeb38fdf477a7b9297b456b94f17e2ebd40720299f /test
parentc3a17127ad383ec8e1f480ff2e1a4dccaa537a11 (diff)
actually register the tempfile removal atexit
Git-Dch: Ignore
Diffstat (limited to 'test')
-rw-r--r--test/libapt/sourcelist_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/libapt/sourcelist_test.cc b/test/libapt/sourcelist_test.cc
index 6e83d08e0..adadae6a7 100644
--- a/test/libapt/sourcelist_test.cc
+++ b/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);