parent
173a9ad8ea
commit
35779863c4
@ -105,7 +105,7 @@ where
|
||||
|
||||
for (i, arg) in args.enumerate() {
|
||||
if i == *argnum {
|
||||
debug_assert_eq!(arg, "DUMMY");
|
||||
debug_assert_eq!(arg, "PLACEHOLDER");
|
||||
#[cfg(unix)]
|
||||
cmd.arg(OsStr::from_bytes(input.target_bytes().as_slice()));
|
||||
// There is an issue here that the chars on Windows are 16 bit wide.
|
||||
@ -379,7 +379,8 @@ impl CommandExecutorBuilder {
|
||||
pub fn arg_input_arg(&mut self) -> &mut Self {
|
||||
let argnum = self.args.len();
|
||||
self.input(InputLocation::Arg { argnum });
|
||||
// self.arg("DUMMY");
|
||||
// Placeholder arg that gets replaced with the input name later.
|
||||
self.arg("PLACEHOLDER");
|
||||
self
|
||||
}
|
||||
|
||||
|
@ -242,7 +242,7 @@ impl<W: Write + Seek> MessageFileWriter<W> {
|
||||
/// Create a `MessageFileWriter` from the given [`Write`].
|
||||
pub fn from_writer(mut writer: W) -> io::Result<Self> {
|
||||
let writer_start_position = writer.stream_position()?;
|
||||
// write dummy trace length
|
||||
// write preliminary trace length
|
||||
writer.write_all(&0_u64.to_le_bytes())?;
|
||||
Ok(Self {
|
||||
id_counter: 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user