Fix padded Wine review strings

This commit is contained in:
deedra committed 2026-10-11 22:07:14 -07:00
1 parent a8cb350467
commit f40e471938
7 files changed
+416 -33

No files matched your search

+14
View File
@@ -115,6 +115,20 @@ with tempfile.TemporaryDirectory(prefix='wine-review-wire-') as temporary:
assert isinstance(wrong[0],GLib.Error) and 'AccessDenied' in str(wrong[0])
other.close_sync(None)
print('PASS: test_wrong_caller')
configure(33)
reply,_ = capture(); data=reply.unpack()[0]
assert data['status']=='ok', data['status']
ready=False
for node in data['nodes']:
assert '\0' not in node['name']
for start,end,native_start,native_end,text,bounds in node['ranges']:
assert '\0' not in text
assert end-start==len(text)
assert native_end-native_start==len(text.encode('utf-16-le'))//2
if text=='Ready': ready=True
assert ready, ('Padded MSAA status name lost its exposed text', data)
subprocess.run(['wine',str(fixture),'--check'],env=env,check=True,timeout=5)
print('PASS: test_padded_status_name_wire_lengths')
configure(9)
reply,_ = capture(); data=reply.unpack()[0]
assert data['status'] in ('ok','stale')