Bug 1607919 - Part 3: Require descriptions for sync message entries, r=mccr8

Differential Revision: https://phabricator.services.mozilla.com/D59213

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nika Layzell 2020-01-09 16:52:27 +00:00
Родитель ef4d0da8fe
Коммит 287fb21379
2 изменённых файлов: 29 добавлений и 0 удалений

Просмотреть файл

@ -75,6 +75,11 @@ parser = RawConfigParser()
parser.readfp(open(options.syncMsgList))
syncMsgList = parser.sections()
for section in syncMsgList:
if not parser.get(section, "description"):
print('Error: Sync message %s lacks a description' % section, file=sys.stderr)
sys.exit(1)
# Read message metadata. Right now we only have 'segment_capacity'
# for the standard segment size used for serialization.
log(2, 'Reading message metadata...')

Просмотреть файл

@ -1,24 +1,48 @@
[Pactorreturn::Msg]
description = test only
[Parray_Union::Msg]
description = test only
[Punion_Basic::Msg]
description = test only
[PStruct::test]
description = test only
[PintrProtocol::SyncMsg]
description = test only
[PintrProtocol::InterruptMsg]
description = test only
[Pshmem::SyncMsg]
description = test only
[Pshmem::InterruptMsg]
description = test only
[Pbytebuf::SyncMsg]
description = test only
[Pbytebuf::InterruptMsg]
description = test only
[PsyncProtocol::SyncMsg]
description = test only
[PmessageVerify::__delete__]
description = test only
[PmessageVerify::msg3]
description = test only
[PmessageVerify::msg4]
description = test only
[PmessageVerifyTopLevel::PmessageVerify]
description = test only
[PDeleteSub::__delete__]
description = test only
[PintrMessageCompress::foo]
description = test only
[PintrMessageCompress::bar]
description = test only
[PsyncMessageCompress::foo]
description = test only
[PsyncParentToChild::Msg]
description = test only
[PtooWeakIntrSync::Msg]
description = test only
[PtooWeakSyncAsync::Msg]
description = test only
[PundeclReturnType::Msg]
description = test only
[PasyncMessageListed::Msg]
description = test only