diff --git a/tests/by-util/test_stdbuf.rs b/tests/by-util/test_stdbuf.rs index 2f234f1830a..0b60ef4648f 100644 --- a/tests/by-util/test_stdbuf.rs +++ b/tests/by-util/test_stdbuf.rs @@ -105,9 +105,8 @@ fn test_stdbuf_search_order_exe_dir_first() { assert!( loaded_from_exe_dir, - "libstdbuf should be loaded from exe directory ({}), not from LIBSTDBUF_DIR. LD_DEBUG output:\n{}", - temp_path.display(), - stderr + "libstdbuf should be loaded from exe directory ({}), not from LIBSTDBUF_DIR. LD_DEBUG output:\n{stderr}", + temp_path.display() ); // The command should succeed and produce the expected output