File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -1003,8 +1003,10 @@ impl Tester for Collector {
1003
1003
let outdir = if let Some ( mut path) = rustdoc_options. persist_doctests . clone ( ) {
1004
1004
path. push ( & test_id) ;
1005
1005
1006
- std:: fs:: create_dir_all ( & path)
1007
- . expect ( "Couldn't create directory for doctest executables" ) ;
1006
+ if let Err ( err) = std:: fs:: create_dir_all ( & path) {
1007
+ eprintln ! ( "Couldn't create directory for doctest executables: {}" , err) ;
1008
+ panic:: resume_unwind ( box ( ) ) ;
1009
+ }
1008
1010
1009
1011
DirState :: Perm ( path)
1010
1012
} else {
Original file line number Diff line number Diff line change
1
+ // compile-flags: --test --persist-doctests /../../ -Z unstable-options
2
+ // failure-status: 101
3
+ // only-linux
4
+
5
+ #![ crate_name = "foo" ]
6
+
7
+ //! ```rust
8
+ //! use foo::dummy;
9
+ //! dummy();
10
+ //! ```
Original file line number Diff line number Diff line change
1
+ Couldn't create directory for doctest executables: Permission denied (os error 13)
You can’t perform that action at this time.
0 commit comments