You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use recordstatus in various testsuites (to get better warnings about unrelated errors from deprecation and similar).
It works fine for tests with status 0 (no error), but fails for non-zero status. E.g. if I save a simple test with a \show\START on windows and then test that on github I get the following diff:
*** 9,15 ****
l. ...\show\START
(test-errorstatus.aux)
***************
! Compilation 1 of test file completed with exit status 1
! Compilation 2 of test file completed with exit status 1
--- 9,15 ----
l. ...\show\START
(test-errorstatus.aux)
***************
! Compilation 1 of test file completed with exit status 256
! Compilation 2 of test file completed with exit status 256
Could l3build please normalize that message to something like with non-zero exit status?
The text was updated successfully, but these errors were encountered:
I guess we should perhaps coerce status 256 to be the same as 1 - that's where the issue really lies. I'm wary of doing more - what if 1 vs 2 vs ... is important?
256 should not be a special case but we should use (0xFF00 & ret) >> 8 instead of the direct return code on Linux. The same or something similar is likely needed on Mac. The underlying issue is that LuaTeX fails to run the code through WERRORCODE, so we get it shifted.
I'm trying to use recordstatus in various testsuites (to get better warnings about unrelated errors from deprecation and similar).
It works fine for tests with status 0 (no error), but fails for non-zero status. E.g. if I save a simple test with a
\show\START
on windows and then test that on github I get the following diff:Could l3build please normalize that message to something like
with non-zero exit status
?The text was updated successfully, but these errors were encountered: