]> git.saurik.com Git - apt.git/blame - test/interactive-helper/test_udevcdrom.cc
merge with debian/sid
[apt.git] / test / interactive-helper / test_udevcdrom.cc
CommitLineData
cbc9bed8
MV
1#include <apt-pkg/cdrom.h>
2#include <stdio.h>
3#include <assert.h>
4
5int main()
6{
cbc9bed8
MV
7 pkgUdevCdromDevices c;
8 assert(c.Dlopen());
9
10 vector<CdromDevice> l;
11 l = c.Scan();
f7f0d6c7 12 assert(l.empty() == false);
59f9dcbd 13 for (size_t i = 0; i < l.size(); ++i)
cbc9bed8
MV
14 std::cerr << l[i].DeviceName << " "
15 << l[i].Mounted << " "
16 << l[i].MountPath << std::endl;
17
18}