File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,13 @@ mod tests {
351
351
352
352
use crate :: { Env , PackageInfo } ;
353
353
354
+ #[ test]
355
+ fn test_current_exe ( ) {
356
+ let current = super :: current_exe ( ) . unwrap ( ) ;
357
+ let current_expected = std:: env:: current_exe ( ) . unwrap ( ) ;
358
+ assert_eq ! ( current, current_expected) ;
359
+ }
360
+
354
361
#[ test]
355
362
fn resolve_resource_dir ( ) {
356
363
let package_info = PackageInfo {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ impl StartingBinary {
34
34
}
35
35
36
36
// we canonicalize the path to resolve any symlinks to the real exe path
37
- Self ( dangerous_path . canonicalize ( ) )
37
+ Self ( dunce :: canonicalize ( dangerous_path ) )
38
38
}
39
39
40
40
/// A clone of the [`PathBuf`] found to be the starting path.
You can’t perform that action at this time.
0 commit comments