diff --git a/src/server.rs b/src/server.rs index e216d9d284..d88dc6cea7 100644 --- a/src/server.rs +++ b/src/server.rs @@ -2658,12 +2658,15 @@ mod tests { ); // rustc +stable: not a rustup proxy next_command(creator, Ok(MockChild::new(exit_status(1), "", ""))); - // rustc --print=sysroot + // rustc --print=sysroot --print=target-libdir + let sysroot = f.tempdir.path().to_str().unwrap(); + let sysroot_and_target_libdir = + format!("{sysroot}\n{sysroot}/lib/rustlib/x86_64-unknown-linux-gnu/lib"); next_command( creator, Ok(MockChild::new( exit_status(0), - f.tempdir.path().to_str().unwrap(), + sysroot_and_target_libdir, "", )), );