pub fn execute_file(input_fname: &Path) -> String {
    let mut exec_res = String::new();
    let output = Command::new(input_fname)
        .output()
        .expect(&format!("failed to execute {}", input_fname.display()));

    exec_res.push_str(match str::from_utf8(&output.stdout) {
        Ok(val) => val,
        Err(_) => panic!("Got non UTF-8 data from execution of test file"),
    });

    exec_res
}
// Return a String containing what was written to stdout during execution of a file
// TODO: Consider making this return a result and move it to lib if we need it elsewhere,
// otherwise it is probably find to retain the calls to expect() and panic!() here.
Return a String containing what was written to stdout during execution of a file
TODO: Consider making this return a result and move it to lib if we need it elsewhere,
otherwise it is probably find to retain the calls to expect() and panic!() here.
Return a String containing what was written to stdout during execution of a file TODO : Consider making this return a result and move it to lib if we need it elsewhere otherwise it is probably find to retain the calls to expect () and panic! () here .
pub fn execute_file(input_fname: &Path) -> String {
    let mut exec_res = String::new();
    let output = Command::new(input_fname)
        .output()
        .expect(&format!("failed to execute {}", input_fname.display()));
    exec_res.push_str(match str::from_utf8(&output.stdout) {
        Ok(val) => val,
        Err(_) => panic!("Got non UTF-8 data from execution of test file"),
    });
    exec_res
}
pub fn execute_file ( input_fname : & Path ) -> String { let mut exec_res = String :: new ( ) ; let output = Command :: new ( input_fname ) . output ( ) . expect ( & format ! ( " " input_fname display ( ) ) ) ; exec_res . push_str ( match str :: from_utf8 ( & output . stdout ) { Ok ( val ) => val , Err ( _ ) => panic ! ( " " ) , } ) ; exec_res }
Return a String containing what was written to stdout during execution of a file
TODO: Consider making this return a result and move it to lib if we need it elsewhere,
otherwise it is probably find to retain the calls to expect() and panic!
Return a String containing what was written to stdout during execution of a file TODO : Consider making this return a result and move it to lib if we need it elsewhere otherwise it is probably find to retain the calls to expect () and panic!
input_fname
&Path