mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
add LEGACY LINKER conditional for test runs
This commit is contained in:
parent
93a4c58798
commit
0e917be911
2 changed files with 70 additions and 15 deletions
|
@ -63,7 +63,7 @@ impl Out {
|
|||
}
|
||||
|
||||
pub fn assert_nonzero_exit(&self) {
|
||||
assert_eq!(self.status.success(), false);
|
||||
assert!(!self.status.success());
|
||||
}
|
||||
|
||||
/// Assert that the command succeeded and that there are no unexpected errors in the stderr.
|
||||
|
@ -225,6 +225,16 @@ impl Run {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn add_arg_if<S>(mut self, arg: S, enabled: bool) -> Self
|
||||
where
|
||||
S: Into<OsString>,
|
||||
{
|
||||
if enabled {
|
||||
self.args.push(arg.into());
|
||||
}
|
||||
self
|
||||
}
|
||||
|
||||
pub fn get_args(&self) -> impl Iterator<Item = &OsStr> {
|
||||
self.args.iter().map(Deref::deref)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue