From nobody Mon Feb 9 01:19:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+89860+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+89860+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linux.microsoft.com ARC-Seal: i=1; a=rsa-sha256; t=1652832856; cv=none; d=zohomail.com; s=zohoarc; b=HesbFAklSjZxhJ5yZpvz9ZR62jvMVVtxnpPrblJgqsTr6xShzaJnkNxl56bCkFt8KVa+qf80teQxcE3trxuhnbfkWk+GMYI6SBUWSOgr4rTIXXKWpVy7STPP83sXnC724v3v9nGQlotN1ctT4e9Ez7xtTtnZKFc6BnR0S6YyiSM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652832856; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=ZQjci9QqRziCf6kn1vj7uOOP1NijBE9TnZIRzp22HZY=; b=WijH9cLW5nzwPhAmb48et7gVTafsHCA7T8cWsXNQ1lvBP51TseGnPJpiOoYk84No/K08h1m9oR+encfSdJpp9iSsUyRJtWEV4NeDppz3YenLuTIYc8t1Xner9LHri6i0EAdYR7WZSGIGvottQu2OMN6wgYGEyxcLuJJfP4fsRQ4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+89860+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1652832856090622.1082063690659; Tue, 17 May 2022 17:14:16 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id OwxwYY1788612xYRCaMwlYRT; Tue, 17 May 2022 17:14:15 -0700 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web08.411.1652832855011420615 for ; Tue, 17 May 2022 17:14:15 -0700 X-Received: from localhost.localdomain (unknown [47.195.228.134]) by linux.microsoft.com (Postfix) with ESMTPSA id E453120F7222; Tue, 17 May 2022 17:14:13 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E453120F7222 From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Michael D Kinney , Michael Kubacki , Sean Brogan , Bret Barkelew Subject: [edk2-devel] [PATCH v2 04/11] UnitTestFrameworkPkg: Fix new typos reported Date: Tue, 17 May 2022 20:13:31 -0400 Message-Id: <20220518001338.1380-5-mikuback@linux.microsoft.com> In-Reply-To: <20220518001338.1380-1-mikuback@linux.microsoft.com> References: <20220518001338.1380-1-mikuback@linux.microsoft.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mikuback@linux.microsoft.com X-Gm-Message-State: n0NgdfUJEExpTxlswvK3F0t9x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1652832855; bh=LM0E1fwJ3DE95lN3ZXp+vI564hQmNVboWxSIPfYsgeM=; h=Cc:Date:From:Reply-To:Subject:To; b=DOmtg77CC99KWrBo3X5MffxyUx8oV3z1ieMjsHvHANe2hy6gQTHcMm4eMzN08oVWOgr AgCmx8J9y2sBkQFZvwm7lMHijKjn0BYsxjBMvdfiIwS4eValjXaoeJplJ5f5/cQyDpjge YWG+lg/lPY7zUmUZG4fMnRw3UmWF2x0BIl4= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1652832858070100003 Content-Type: text/plain; charset="utf-8" From: Michael Kubacki The SpellCheck plugin began reporting new typos that were previously missed. This change fixes those typos. Cc: Michael D Kinney Cc: Michael Kubacki Cc: Sean Brogan Cc: Bret Barkelew Signed-off-by: Michael Kubacki --- UnitTestFrameworkPkg/Library/Posix/MemoryAllocationLibPosix/MemoryAllocati= onLibPosix.c | 18 ++++++------ UnitTestFrameworkPkg/Library/UnitTestBootLibNull/UnitTestBootLibNull.c = | 2 +- UnitTestFrameworkPkg/Library/UnitTestBootLibUsbClass/UnitTestBootLibUsbCla= ss.c | 2 +- UnitTestFrameworkPkg/Library/UnitTestLib/Log.c = | 2 +- UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.c = | 2 +- UnitTestFrameworkPkg/Test/UnitTest/Sample/SampleUnitTest/SampleUnitTest.c = | 2 +- UnitTestFrameworkPkg/PrivateInclude/Library/UnitTestBootLib.h = | 2 +- UnitTestFrameworkPkg/PrivateInclude/UnitTestFrameworkTypes.h = | 2 +- UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml = | 29 ++++++++++++++------ 9 files changed, 36 insertions(+), 25 deletions(-) diff --git a/UnitTestFrameworkPkg/Library/Posix/MemoryAllocationLibPosix/Me= moryAllocationLibPosix.c b/UnitTestFrameworkPkg/Library/Posix/MemoryAllocat= ionLibPosix/MemoryAllocationLibPosix.c index 54029283fbbf..f85a05ec06ee 100644 --- a/UnitTestFrameworkPkg/Library/Posix/MemoryAllocationLibPosix/MemoryAll= ocationLibPosix.c +++ b/UnitTestFrameworkPkg/Library/Posix/MemoryAllocationLibPosix/MemoryAll= ocationLibPosix.c @@ -27,7 +27,7 @@ /// typedef struct { UINT32 Signature; - VOID *AllocatedBufffer; + VOID *AllocatedBuffer; UINTN TotalPages; VOID *AlignedBuffer; UINTN AlignedPages; @@ -165,16 +165,16 @@ AllocateAlignedPages ( // // We need reserve Alignment pages for PAGE_HEAD, as meta data. // - PageHead.Signature =3D PAGE_HEAD_PRIVATE_SIGNATURE; - PageHead.TotalPages =3D Pages + EFI_SIZE_TO_PAGES (Alignment) * 2; - PageHead.AlignedPages =3D Pages; - PageHead.AllocatedBufffer =3D malloc (EFI_PAGES_TO_SIZE (PageHead.TotalP= ages)); - if (PageHead.AllocatedBufffer =3D=3D NULL) { + PageHead.Signature =3D PAGE_HEAD_PRIVATE_SIGNATURE; + PageHead.TotalPages =3D Pages + EFI_SIZE_TO_PAGES (Alignment) * 2; + PageHead.AlignedPages =3D Pages; + PageHead.AllocatedBuffer =3D malloc (EFI_PAGES_TO_SIZE (PageHead.TotalPa= ges)); + if (PageHead.AllocatedBuffer =3D=3D NULL) { return NULL; } =20 - PageHead.AlignedBuffer =3D (VOID *)(((UINTN)PageHead.AllocatedBufffer + = AlignmentMask) & ~AlignmentMask); - if ((UINTN)PageHead.AlignedBuffer - (UINTN)PageHead.AllocatedBufffer < s= izeof (PAGE_HEAD)) { + PageHead.AlignedBuffer =3D (VOID *)(((UINTN)PageHead.AllocatedBuffer + A= lignmentMask) & ~AlignmentMask); + if ((UINTN)PageHead.AlignedBuffer - (UINTN)PageHead.AllocatedBuffer < si= zeof (PAGE_HEAD)) { PageHead.AlignedBuffer =3D (VOID *)((UINTN)PageHead.AlignedBuffer + Al= ignment); } =20 @@ -279,7 +279,7 @@ FreeAlignedPages ( } =20 PageHeadPtr->Signature =3D 0; - free (PageHeadPtr->AllocatedBufffer); + free (PageHeadPtr->AllocatedBuffer); } =20 /** diff --git a/UnitTestFrameworkPkg/Library/UnitTestBootLibNull/UnitTestBootL= ibNull.c b/UnitTestFrameworkPkg/Library/UnitTestBootLibNull/UnitTestBootLib= Null.c index a49aaefdb71f..7ff80850ff57 100644 --- a/UnitTestFrameworkPkg/Library/UnitTestBootLibNull/UnitTestBootLibNull.c +++ b/UnitTestFrameworkPkg/Library/UnitTestBootLibNull/UnitTestBootLibNull.c @@ -13,7 +13,7 @@ =20 @retval EFI_SUCCESS Boot device for next boot was set. @retval EFI_UNSUPPORTED Setting the boot device for the next boot is not - supportted. + supported. @retval Other Boot device for next boot can not be set. **/ EFI_STATUS diff --git a/UnitTestFrameworkPkg/Library/UnitTestBootLibUsbClass/UnitTestB= ootLibUsbClass.c b/UnitTestFrameworkPkg/Library/UnitTestBootLibUsbClass/Uni= tTestBootLibUsbClass.c index ebb42186a534..8b03e7cd15fc 100644 --- a/UnitTestFrameworkPkg/Library/UnitTestBootLibUsbClass/UnitTestBootLibU= sbClass.c +++ b/UnitTestFrameworkPkg/Library/UnitTestBootLibUsbClass/UnitTestBootLibU= sbClass.c @@ -20,7 +20,7 @@ =20 @retval EFI_SUCCESS Boot device for next boot was set. @retval EFI_UNSUPPORTED Setting the boot device for the next boot is not - supportted. + supported. @retval Other Boot device for next boot can not be set. **/ EFI_STATUS diff --git a/UnitTestFrameworkPkg/Library/UnitTestLib/Log.c b/UnitTestFrame= workPkg/Library/UnitTestLib/Log.c index 3998aafdf843..35544ff0659a 100644 --- a/UnitTestFrameworkPkg/Library/UnitTestLib/Log.c +++ b/UnitTestFrameworkPkg/Library/UnitTestLib/Log.c @@ -1,5 +1,5 @@ /** - Implemnet UnitTestLib log services + Implement UnitTestLib log services =20 Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent diff --git a/UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.c b/UnitT= estFrameworkPkg/Library/UnitTestLib/UnitTestLib.c index 64d5880783bf..d095b2f12067 100644 --- a/UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.c +++ b/UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.c @@ -215,7 +215,7 @@ InitUnitTestFramework ( NewFramework =3D NULL; =20 // - // First, check all pointers and make sure nothing's broked. + // First, check all pointers and make sure nothing is broken. // if ((FrameworkHandle =3D=3D NULL) || (Title =3D=3D NULL) || (ShortTitle =3D=3D NULL) || (VersionString =3D=3D NULL)) diff --git a/UnitTestFrameworkPkg/Test/UnitTest/Sample/SampleUnitTest/Sampl= eUnitTest.c b/UnitTestFrameworkPkg/Test/UnitTest/Sample/SampleUnitTest/Samp= leUnitTest.c index c02a2dba987d..dd010a75a5a6 100644 --- a/UnitTestFrameworkPkg/Test/UnitTest/Sample/SampleUnitTest/SampleUnitTe= st.c +++ b/UnitTestFrameworkPkg/Test/UnitTest/Sample/SampleUnitTest/SampleUnitTe= st.c @@ -1,5 +1,5 @@ /** @file - This is a sample to demostrate the usage of the Unit Test Library that + This is a sample to demonstrate the usage of the Unit Test Library that supports the PEI, DXE, SMM, UEFI SHell, and host execution environments. =20 Copyright (c) Microsoft Corporation.
diff --git a/UnitTestFrameworkPkg/PrivateInclude/Library/UnitTestBootLib.h = b/UnitTestFrameworkPkg/PrivateInclude/Library/UnitTestBootLib.h index d90bff0e4c1b..de4b9566837b 100644 --- a/UnitTestFrameworkPkg/PrivateInclude/Library/UnitTestBootLib.h +++ b/UnitTestFrameworkPkg/PrivateInclude/Library/UnitTestBootLib.h @@ -19,7 +19,7 @@ =20 @retval EFI_SUCCESS Boot device for next boot was set. @retval EFI_UNSUPPORTED Setting the boot device for the next boot is not - supportted. + supported. @retval Other Boot device for next boot can not be set. **/ EFI_STATUS diff --git a/UnitTestFrameworkPkg/PrivateInclude/UnitTestFrameworkTypes.h b= /UnitTestFrameworkPkg/PrivateInclude/UnitTestFrameworkTypes.h index adce413818a2..0c0e82de4003 100644 --- a/UnitTestFrameworkPkg/PrivateInclude/UnitTestFrameworkTypes.h +++ b/UnitTestFrameworkPkg/PrivateInclude/UnitTestFrameworkTypes.h @@ -18,7 +18,7 @@ #define UNIT_TEST_MAX_STRING_LENGTH (120) =20 /// -/// The size of a firngerprint used to save/resume execution of a unit test +/// The size of a fingerprint used to save/resume execution of a unit test /// framework. This is the size of a CRC32 value which is 32-bit value. /// /// diff --git a/UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml b/UnitTestFr= ameworkPkg/UnitTestFrameworkPkg.ci.yaml index 77d51e13484c..dab416521585 100644 --- a/UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml +++ b/UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml @@ -81,19 +81,30 @@ "Library/CmockaLib/cmocka/**/*.*" # not going to spell check = a submodule ], "ExtendWords": [ # words to extend to the dictionary f= or this package - "testcase", - "testsuites", - "cmocka", + "assertnotefierror", + "assertnotnull", + "assertstatusequal", "buildmodule", + "cmocka", + "cmockery", + "corthon", # Contact GitHub account in Readme "criterium", + "deadloop", + "devpath", + "DHAVE", # build flag for cmocka in the INF + "expectassert", + "failuretype", + "mdkinney", # Contact GitHub account in Readme + "NOFAILURE", + "notefierror", + "notequal", "pytool", "pytools", - "NOFAILURE", - "cmockery", - "DHAVE", # build flag for cmocka in the INF - "corthon", # Contact GitHub account in Readme - "mdkinney", # Contact GitHub account in Readme - "spbrogan" # Contact GitHub account in Readme + "spbrogan", # Contact GitHub account in Readme + "statusequal", + "testcase", + "testfailuremsg", + "testsuites" ], "IgnoreStandardPaths": [], # Standard Plugin defined paths that = should be ignore "AdditionalIncludePaths": [] # Additional paths to spell check (wi= ldcards supported) --=20 2.28.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#89860): https://edk2.groups.io/g/devel/message/89860 Mute This Topic: https://groups.io/mt/91176794/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-