Make fixes and improvements

- Fix handling of precision in hex float formatting
- Enhance the cocmd interpreter for system() and popen()
- Manually ran the Lua unit tests, which are now passing
- Let stdio i/o operations happen when file is in error state
- We're now saving and restoring xmm in ftrace out of paranoia
This commit is contained in:
Justine Tunney 2023-07-09 05:11:25 -07:00
parent 95fbdb4f76
commit 41396ff48a
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
43 changed files with 495 additions and 261 deletions

View file

@ -792,9 +792,18 @@ assert(os.date(string.rep("%", 200)) == string.rep("%", 100))
local function checkDateTable (t)
_G.D = os.date("*t", t)
assert(os.time(D) == t)
load(os.date([[assert(D.year==%Y and D.month==%m and D.day==%d and
D.hour==%H and D.min==%M and D.sec==%S and
D.wday==%w+1 and D.yday==%j)]], t))()
-- [jart] rewrote test due to octal
assert(string.format('%d', D.year) == os.date('%Y', t))
assert(string.format('%02d', D.month) == os.date('%m', t))
assert(string.format('%02d', D.day) == os.date('%d', t))
assert(string.format('%02d', D.hour) == os.date('%H', t))
assert(string.format('%02d', D.min) == os.date('%M', t))
assert(string.format('%02d', D.sec) == os.date('%S', t))
assert(string.format('%d', D.wday - 1) == os.date('%w', t))
assert(string.format('%03d', D.yday) == os.date('%j', t))
-- load(os.date([[assert(D.year==%Y and D.month==%m and D.day==%d and
-- D.hour==%H and D.min==%M and D.sec==%S and
-- D.wday==%w+1 and D.yday==%j)]], t))()
_G.D = nil
end