|
|
@ -9,17 +9,4 @@ impl Builtin for Exit { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*#[cfg(test)]
|
|
|
|
mod tests {
|
|
|
|
use super::*;
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_exit() {
|
|
|
|
assert_eq!(Exit.execute(vec!["arg".to_string()]), Err(ShellError::Exit))
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_exit_without_args() {
|
|
|
|
assert_eq!(Exit.execute(vec![]), Err(ShellError::Exit))
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
// do not write tests for this. the call of exit 0 will abort all other tests too
|
xxxxxxxxxx