]> git.saurik.com Git - apt.git/blame_incremental - test/interactive-helper/test_udevcdrom.cc
abort connection on '.' target replies in SRV
[apt.git] / test / interactive-helper / test_udevcdrom.cc
... / ...
CommitLineData
1#include <config.h>
2
3#include <apt-pkg/cdrom.h>
4
5#include <stddef.h>
6#include <string>
7#include <assert.h>
8#include <vector>
9#include <iostream>
10
11int main()
12{
13 pkgUdevCdromDevices c;
14 assert(c.Dlopen());
15
16 std::vector<CdromDevice> l;
17 l = c.Scan();
18 assert(l.empty() == false);
19 for (size_t i = 0; i < l.size(); ++i)
20 std::cerr << l[i].DeviceName << " "
21 << l[i].Mounted << " "
22 << l[i].MountPath << std::endl;
23}