]> git.saurik.com Git - apt.git/blame - test/test_udevcdrom.cc
if critical or-group can't be satisfied, exit directly.
[apt.git] / test / test_udevcdrom.cc
CommitLineData
cbc9bed8
MV
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.size() > 0);
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}