]> git.saurik.com Git - apt.git/blobdiff - test/libapt/sourcelist_test.cc
merged mvo/feature/deb822
[apt.git] / test / libapt / sourcelist_test.cc
index 6e83d08e022f6fa2a719c25a9671be4684e99e29..bf61746c437a264376cc26b474df6372bc684c99 100644 (file)
@@ -23,19 +23,20 @@ int main(int argc, char *argv[])
 {
    const char contents[] = ""
       "Type: deb\n"
 {
    const char contents[] = ""
       "Type: deb\n"
-      "URL: http://ftp.debian.org/debian\n"
-      "Dist: stable\n"
+      "Uri: http://ftp.debian.org/debian\n"
+      "Suite: stable\n"
       "Section: main\n"
       "Comment: Some random string\n"
       " that can be very long\n"
       "\n"
       "Type: deb\n"
       "Section: main\n"
       "Comment: Some random string\n"
       " that can be very long\n"
       "\n"
       "Type: deb\n"
-      "URL: http://ftp.debian.org/debian\n"
-      "Dist: unstable\n"
+      "Uri: http://ftp.debian.org/debian\n"
+      "Suite: unstable\n"
       "Section: main non-free\n"
       ;
 
    FileFd fd;
       "Section: main non-free\n"
       ;
 
    FileFd fd;
+   atexit(remove_tmpfile);
    tempfile = strdup("apt-test.XXXXXXXX");
    tempfile_fd = mkstemp(tempfile);
 
    tempfile = strdup("apt-test.XXXXXXXX");
    tempfile_fd = mkstemp(tempfile);