Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicGamer9523 committed Nov 24, 2023
1 parent 3aa2e9d commit a18935f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions libs/l2math/bindings/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def test_with_clang(cd: str, args: list[str]) -> str | int | None:
return "Failed to get target triplet"

# Build bindings for current target triplet just in case
build_l2math_bindings(cd, [target_triplet])
res = build_l2math_bindings(cd, [])
if res != None: return res

bin_name = "l2mathtestbin"
if "windows" in target_triplet:
Expand All @@ -45,7 +46,13 @@ def test_with_clang(cd: str, args: list[str]) -> str | int | None:
print("Compiling test binary")

res = subprocess.run(cmd, cwd = cd)
if res.returncode != 0: return res.returncode
if res.returncode != 0:
if res.returncode == 1:
print("Compilation failed")
print(res.stderr.decode())
else:
print("Compilation failed with error code", res.returncode)
return res.returncode

print("Running test binary")

Expand Down

0 comments on commit a18935f

Please sign in to comment.