]> git.saurik.com Git - apt.git/blobdiff - test/interactive-helper/test_udevcdrom.cc
abort connection on '.' target replies in SRV
[apt.git] / test / interactive-helper / test_udevcdrom.cc
index dc25ab357d16311421fc8d9e3b712f5249536937..b87dcd935a85f31fe95d9ceac05d1855a25fd841 100644 (file)
@@ -1,18 +1,23 @@
+#include <config.h>
+
 #include <apt-pkg/cdrom.h>
 #include <apt-pkg/cdrom.h>
-#include <stdio.h>
+
+#include <stddef.h>
+#include <string>
 #include <assert.h>
 #include <assert.h>
+#include <vector>
+#include <iostream>
 
 int main()
 {
    pkgUdevCdromDevices c;
    assert(c.Dlopen());
 
 
 int main()
 {
    pkgUdevCdromDevices c;
    assert(c.Dlopen());
 
-   vector<CdromDevice> l;
+   std::vector<CdromDevice> l;
    l = c.Scan();
    assert(l.empty() == false);
    for (size_t i = 0; i < l.size(); ++i)
       std::cerr << l[i].DeviceName << " " 
                << l[i].Mounted << " " 
                << l[i].MountPath << std::endl;
    l = c.Scan();
    assert(l.empty() == false);
    for (size_t i = 0; i < l.size(); ++i)
       std::cerr << l[i].DeviceName << " " 
                << l[i].Mounted << " " 
                << l[i].MountPath << std::endl;
-   
 }
 }