mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-25 18:10:23 +08:00
test: nasm-t -- Rework data read procedure
Actually it is still blockable, just tune it the way to make riprel pass. Need to redesign for handling big slabs of data. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
218ba6bc9e
commit
7bb272d0b5
@ -283,13 +283,15 @@ def exec_nasm(desc):
|
||||
if pnasm == None:
|
||||
test_fail(desc['_test-name'], "Unable to execute test")
|
||||
return None
|
||||
wait_rc = pnasm.wait();
|
||||
|
||||
stdout = pnasm.stdout.read().decode("utf-8").strip("\n")
|
||||
stderr = pnasm.stderr.read().decode("utf-8").strip("\n")
|
||||
stderr = pnasm.stderr.read(1048576).decode("utf-8").strip("\n")
|
||||
stdout = pnasm.stdout.read(1048576).decode("utf-8").strip("\n")
|
||||
|
||||
pnasm.stdout.close()
|
||||
pnasm.stderr.close()
|
||||
|
||||
wait_rc = pnasm.wait();
|
||||
|
||||
if desc['_wait'] != wait_rc:
|
||||
if stdout != "":
|
||||
show_std("stdout", stdout)
|
||||
|
Loading…
x
Reference in New Issue
Block a user