File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
crates/pet-python-utils/tests Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ fn verify_cache() {
103
103
test
104
104
) ]
105
105
#[ allow( dead_code) ]
106
+ // #[test]
106
107
fn verify_invalidating_cache ( ) {
107
108
use std:: { env, fs, time:: SystemTime } ;
108
109
@@ -128,6 +129,23 @@ fn verify_invalidating_cache() {
128
129
is64_bit : true ,
129
130
symlinks : Some ( vec ! [ python. clone( ) , python3. clone( ) ] ) ,
130
131
} ;
132
+ let unix: PathBuf = resolve_test_path ( & [ "unix" ] ) . into ( ) ;
133
+ println ! ( "unix {:?} exists = {:?}" , python, python. exists( ) ) ;
134
+ println ! (
135
+ "unix.parent {:?} exists = {:?}" ,
136
+ unix. parent( ) . unwrap( ) ,
137
+ unix. parent( ) . unwrap( ) . exists( )
138
+ ) ;
139
+ println ! (
140
+ "unix.parent.parent {:?} exists = {:?}" ,
141
+ unix. parent( ) . unwrap( ) . parent( ) . unwrap( ) ,
142
+ unix. parent( ) . unwrap( ) . parent( ) . unwrap( ) . exists( )
143
+ ) ;
144
+ println ! (
145
+ "Updating mtime of {:?} and it exists = {:?}" ,
146
+ python,
147
+ python. exists( )
148
+ ) ;
131
149
132
150
// Ensure the file does not exist.
133
151
let cache_file = generate_cache_file ( & cache_dir, & resolve_env. executable ) ;
You can’t perform that action at this time.
0 commit comments