summaryrefslogtreecommitdiff
path: root/test/libapt/cdromfindmountpointfordevice_test.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-04-22 15:19:17 +0200
committerMichael Vogt <mvo@debian.org>2014-04-22 15:19:17 +0200
commit9607aab538b07f1bb60f9b0d84ea445589638998 (patch)
treebdd459aac462fc0dc93b7a0eb319dc218ecc16e4 /test/libapt/cdromfindmountpointfordevice_test.cc
parentc6e00b107318e32284437f02285197154bee59bf (diff)
parentebe24b7ad56550f21f467b86ceab7f7209a876f6 (diff)
Merge remote-tracking branch 'donkult/debian/sid' into debian/sid
Diffstat (limited to 'test/libapt/cdromfindmountpointfordevice_test.cc')
-rw-r--r--test/libapt/cdromfindmountpointfordevice_test.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/libapt/cdromfindmountpointfordevice_test.cc b/test/libapt/cdromfindmountpointfordevice_test.cc
deleted file mode 100644
index 26dcd1459..000000000
--- a/test/libapt/cdromfindmountpointfordevice_test.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <config.h>
-
-#include <apt-pkg/cdromutl.h>
-#include <apt-pkg/configuration.h>
-
-#include <string>
-#include <vector>
-
-#include "assert.h"
-
-int main(int argc, char const *argv[]) {
- if (argc != 2) {
- std::cout << "One parameter expected - given " << argc << std::endl;
- return 100;
- }
-
- _config->Set("Dir::state::Mountpoints", argv[1]);
- equals("/", FindMountPointForDevice("rootfs"));
- equals("/", FindMountPointForDevice("/dev/disk/by-uuid/fadcbc52-6284-4874-aaaa-dcee1f05fe21"));
- equals("/sys", FindMountPointForDevice("sysfs"));
- equals("/sys0", FindMountPointForDevice("sysfs0"));
- equals("/boot/efi", FindMountPointForDevice("/dev/sda1"));
- equals("/tmp", FindMountPointForDevice("tmpfs"));
-
- return 0;
-}