This commit is contained in:
Igor Matuszewski 2021-11-09 22:27:16 +01:00 коммит произвёл Sylvestre Ledru
Родитель 607e9a83f4
Коммит 2006639391
1 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -1162,7 +1162,7 @@ mod test {
let runtime = single_threaded_runtime();
let pool = runtime.handle();
next_command(&creator, Ok(MockChild::new(exit_status(0), "\n\ngcc", "")));
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], &pool, None)
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
@ -1176,7 +1176,7 @@ mod test {
let runtime = single_threaded_runtime();
let pool = runtime.handle();
next_command(&creator, Ok(MockChild::new(exit_status(0), "clang\n", "")));
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], &pool, None)
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
@ -1204,7 +1204,7 @@ mod test {
&creator,
Ok(MockChild::new(exit_status(0), &stdout, &String::new())),
);
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], &pool, None)
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
@ -1218,7 +1218,7 @@ mod test {
let runtime = single_threaded_runtime();
let pool = runtime.handle();
next_command(&creator, Ok(MockChild::new(exit_status(0), "nvcc\n", "")));
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], &pool, None)
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
@ -1256,7 +1256,7 @@ LLVM version: 6.0",
next_command(&creator, Ok(MockChild::new(exit_status(0), &sysroot, "")));
next_command(&creator, Ok(MockChild::new(exit_status(0), &sysroot, "")));
next_command(&creator, Ok(MockChild::new(exit_status(0), &sysroot, "")));
let c = detect_compiler(creator, &rustc, f.tempdir.path(), &[], &pool, None)
let c = detect_compiler(creator, &rustc, f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
@ -1270,7 +1270,7 @@ LLVM version: 6.0",
let runtime = single_threaded_runtime();
let pool = runtime.handle();
next_command(&creator, Ok(MockChild::new(exit_status(0), "\ndiab\n", "")));
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], &pool, None)
let c = detect_compiler(creator, &f.bins[0], f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;
@ -1292,7 +1292,7 @@ LLVM version: 6.0",
"/foo/bar".as_ref(),
f.tempdir.path(),
&[],
&pool,
pool,
None
)
.wait()
@ -1311,7 +1311,7 @@ LLVM version: 6.0",
"/foo/bar".as_ref(),
f.tempdir.path(),
&[],
&pool,
pool,
None
)
.wait()
@ -1337,7 +1337,7 @@ LLVM version: 6.0",
&f.bins[0],
f.tempdir.path(),
&[],
&pool,
pool,
None,
)
.wait()
@ -1352,7 +1352,7 @@ LLVM version: 6.0",
o => panic!("Bad result from parse_arguments: {:?}", o),
};
hasher
.generate_hash_key(&creator, cwd.to_path_buf(), vec![], false, &pool, false)
.generate_hash_key(&creator, cwd.to_path_buf(), vec![], false, pool, false)
.wait()
.unwrap()
})
@ -1369,7 +1369,7 @@ LLVM version: 6.0",
let f = TestFixture::new();
// Pretend to be GCC.
next_command(&creator, Ok(MockChild::new(exit_status(0), "gcc", "")));
let c = get_compiler_info(creator, &f.bins[0], f.tempdir.path(), &[], &pool, None)
let c = get_compiler_info(creator, &f.bins[0], f.tempdir.path(), &[], pool, None)
.wait()
.unwrap()
.0;