File tree 5 files changed +29
-22
lines changed
parallel-rustc-no-overwrite
5 files changed +29
-22
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,6 @@ run-make/optimization-remarks-dir/Makefile
156
156
run-make/output-filename-conflicts-with-directory/Makefile
157
157
run-make/output-filename-overwrites-input/Makefile
158
158
run-make/output-type-permutations/Makefile
159
- run-make/output-with-hyphens/Makefile
160
159
run-make/override-aliased-flags/Makefile
161
160
run-make/overwrite-input/Makefile
162
161
run-make/panic-abort-eh_frame/Makefile
Original file line number Diff line number Diff line change @@ -38,7 +38,4 @@ fn main() {
38
38
. assert_stderr_contains (
39
39
"failed to find or create the directory specified by `--temps-dir`" ,
40
40
) ;
41
-
42
- perms. set_mode ( 0o666 ) ; // Unlock the directory, so that compiletest can delete it.
43
- fs_wrapper:: set_permissions ( "inaccessible" , perms) ;
44
41
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Rust files with hyphens in their filename should
2
+ // not result in compiled libraries keeping that hyphen -
3
+ // it should become an underscore. Only bin executables
4
+ // should keep the hyphen. This test ensures that this rule
5
+ // remains enforced.
6
+ // See https://github.com/rust-lang/rust/pull/23786
7
+
8
+ //@ ignore-cross-compile
9
+
10
+ use run_make_support:: { path, rustc} ;
11
+
12
+ fn main ( ) {
13
+ rustc ( ) . input ( "foo-bar.rs" ) . crate_type ( "bin" ) . run ( ) ;
14
+ assert ! ( path( bin_name( "foo-bar" ) ) . exists( ) ) ;
15
+ rustc ( ) . input ( "foo-bar.rs" ) . crate_type ( "lib" ) . run ( ) ;
16
+ assert ! ( path( bin_name( "libfoo_bar.rlib" ) ) . exists( ) ) ;
17
+ }
Original file line number Diff line number Diff line change 6
6
// See https://github.com/rust-lang/rust/pull/83846
7
7
8
8
use run_make_support:: { fs_wrapper, rustc} ;
9
+ use std:: sync:: { Arc , Barrier } ;
9
10
use std:: thread;
10
11
11
12
fn main ( ) {
12
- fs_wrapper:: create_file ( "lib.rs" ) ;
13
- let handle1 = thread:: spawn ( move || {
14
- rustc ( ) . crate_type ( "lib" ) . arg ( "-Ztemps-dir=temp1" ) . input ( "lib.rs" ) ;
15
- } ) ;
16
-
17
- let handle2 = thread:: spawn ( move || {
18
- rustc ( ) . crate_type ( "staticlib" ) . arg ( "-Ztemps-dir=temp2" ) . input ( "lib.rs" ) ;
19
- } ) ;
20
- handle1. join ( ) . expect ( "lib thread panicked" ) ;
21
- handle2. join ( ) . expect ( "staticlib thread panicked" ) ;
13
+ let barrier = Arc :: new ( Barrier :: new ( 2 ) ) ;
14
+ let handle = {
15
+ let barrier = Arc :: clone ( & barrier) ;
16
+ thread:: spawn ( move || {
17
+ barrier. wait ( ) ;
18
+ rustc ( ) . crate_type ( "lib" ) . arg ( "-Ztemps-dir=temp1" ) . input ( "lib.rs" ) ;
19
+ } )
20
+ } ;
21
+ barrier. wait ( ) ;
22
+ rustc ( ) . crate_type ( "staticlib" ) . arg ( "-Ztemps-dir=temp2" ) . input ( "lib.rs" ) ;
23
+ handle. join ( ) . expect ( "lib thread panicked" ) ;
22
24
}
You can’t perform that action at this time.
0 commit comments