]> git.saurik.com Git - apt.git/blame_incremental - test/test_udevcdrom.cc
cppcheck complains about some possible speed improvements which could be
[apt.git] / test / test_udevcdrom.cc
... / ...
CommitLineData
1#include <apt-pkg/cdrom.h>
2#include <stdio.h>
3#include <assert.h>
4
5int main()
6{
7 int i;
8 pkgUdevCdromDevices c;
9 assert(c.Dlopen());
10
11 vector<CdromDevice> l;
12 l = c.Scan();
13 assert(l.empty() == false);
14 for (i=0;i<l.size();i++)
15 std::cerr << l[i].DeviceName << " "
16 << l[i].Mounted << " "
17 << l[i].MountPath << std::endl;
18
19}