File: test_parse_ldsoconf.rs

package info (click to toggle)
rust-lddtree 0.3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 164 kB
  • sloc: makefile: 10
file content (18 lines) | stat: -rw-r--r-- 467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use lddtree::ld_so_conf::parse_ld_so_conf;

#[test]
fn test_parse_ldsoconf() {
    let paths = parse_ld_so_conf("tests/ld.so.conf", "/").unwrap();
    assert_eq!(
        paths,
        vec![
            "/usr/lib/x86_64-linux-gnu/libfakeroot",
            "/usr/local/lib",
            "/usr/local/lib/x86_64-linux-gnu",
            "/lib/x86_64-linux-gnu",
            "/usr/lib/x86_64-linux-gnu",
            "/lib32",
            "/usr/lib32",
        ]
    );
}