Skip to content

Commit 55f80d8

Browse files
committed
Merge branch 'main' of github.com:foxfriends/trilogy
2 parents f9ec6b8 + 14df3c0 commit 55f80d8

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ testsuite:
3535

3636
run file="main.tri":
3737
cargo run -- compile {{file}} > main.ll
38-
{{clang}} main.ll -g -ldl -no-pie -fno-pie -fdebug-macro -O0 -rdynamic
38+
{{clang}} main.ll -g -ldl -fdebug-macro -O0 -rdynamic
3939
./a.out
4040

4141
trace file="main.tri":

trilogy/test.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,12 @@ impl Report {
175175
if program_output.stderr.is_empty() {
176176
writeln!(stdout, "expected error output")?;
177177
}
178-
} else {
179-
if !program_output.stderr.is_empty() {
180-
writeln!(
181-
stdout,
182-
"---- unexpected error output ----\n{}",
183-
std::str::from_utf8(&program_output.stderr).unwrap_or("non UTF-8 output"),
184-
)?;
185-
}
178+
} else if !program_output.stderr.is_empty() {
179+
writeln!(
180+
stdout,
181+
"---- unexpected error output ----\n{}",
182+
std::str::from_utf8(&program_output.stderr).unwrap_or("non UTF-8 output"),
183+
)?;
186184
}
187185

188186
Ok(())

0 commit comments

Comments
 (0)