Skip to content

cargo test --doc not load same shared libraries as cargo test --lib #8531

Closed
@adamcrume

Description

@adamcrume

Problem
cargo test --doc doesn't appear to be loading the same shared libraries as cargo test --lib in 1.45

Steps

  1. Clone https://github.com/tensorflow/rust
  2. Set Rust to 1.44
  3. Note that both cargo test --doc and cargo test --lib pass
  4. Set Rust to 1.45
  5. Note that cargo test --lib passes but cargo test --doc fails with error while loading shared libraries: libtensorflow.so.1: cannot open shared object file: No such file or directory

Notes

Output of cargo version:
cargo 1.44.0 (05d080f 2020-05-06) or cargo 1.45.0 (744bd1f 2020-06-15)

Running on Ubuntu 20.04 LTS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-doctestsArea: rustdoc --testC-bugCategory: bugE-mediumExperience: MediumS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.

    Type

    No type

    Projects

    Status

    Done

    Status

    Nominated

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions