From nobody Sun Feb 8 22:07:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+62358+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+62358+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1594433352; cv=none; d=zohomail.com; s=zohoarc; b=esNfG4gbhsJhx1JegjUCQ9ysnuZe0WS9ukSr0FAtvHsUQSSPPaWp4ZYLxyK/XLNflJAu+7r9Zz3YvpowgrOzAmCK7Wfq/IoZitDFiXTv8sWHBqAvOjRsDYFr11/XDWG+0CPTEAwyFX54+/uOQsETaLv6bX/uazji0qPKZS3u4CY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594433352; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=xXKVjmOfZPrEaUJTIQ3JNPqtjL8u3lzwoHzG54FNBxg=; b=FUUS/ez+XzDBodPWLGh8ES93DS8nq7udXvJ25fB92jEyufYwiC0N8A7DpwWe7xgXKtghzx4oERrXyH5EIatcq5qyp2eWszRYqc62+t8OpcowtfwEXHapUpPK9ydn4zwGCDNcD0sE5+TDy+wkmgzbPrHGhlXjGwI1b2o0nkQdbh8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+62358+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1594433352503839.5507588378383; Fri, 10 Jul 2020 19:09:12 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id BqkLYY1788612xRHuwv4gBpI; Fri, 10 Jul 2020 19:09:12 -0700 X-Received: from mga11.intel.com (mga11.intel.com []) by mx.groups.io with SMTP id smtpd.web10.2144.1594433349022222645 for ; Fri, 10 Jul 2020 19:09:11 -0700 IronPort-SDR: aKmN62YjzGCntY0TkFDkikgcVDNMHyoN5XInGEzgtlCp5jyqWz/s+jFqHiKgf1miVv0SLhanUq vlrMKeG34Mdw== X-IronPort-AV: E=McAfee;i="6000,8403,9678"; a="146380552" X-IronPort-AV: E=Sophos;i="5.75,337,1589266800"; d="scan'208";a="146380552" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 19:09:11 -0700 IronPort-SDR: etObQOheEEYf39AsObOon9/cXLB0c2muOJgvMqJejHcPKnuCVk2KJkXvZKzz2U3AwPBCXzApzz GoFoF3N2uOQA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,337,1589266800"; d="scan'208";a="298602273" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.254.75.186]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2020 19:09:10 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Sean Brogan , Bret Barkelew , Jiewen Yao Subject: [edk2-devel] [Patch v3 07/16] UnitTestFrameworkPkg: Enable source level debug for host tests Date: Fri, 10 Jul 2020 19:08:55 -0700 Message-Id: <20200711020904.24116-8-michael.d.kinney@intel.com> In-Reply-To: <20200711020904.24116-1-michael.d.kinney@intel.com> References: <20200711020904.24116-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,michael.d.kinney@intel.com X-Gm-Message-State: O7vk5ZyAqEkkTJSflVFJZMqvx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1594433352; bh=qvalx6KpiOCgFRDf2EioZ2FTnwR7sXvCJc4Q9OU1vL4=; h=Cc:Date:From:Reply-To:Subject:To; b=kIWyzP3cklEf9FPHIpSAhH0PlbjFueuTJ1X9F9Z/kvpQ8vdbcnB6Gi8FKpY312eP3NZ Z0iRzgHGp0ICuYmabTzGbfF/1GDgRLRCOs1AANSLadM0x60eGvdYWVVmtUlcaC3+Po/Pv H421kxVmhU1xA7g1QqTTOYlaDwSIoghH0ko= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2804 Optionally enable a feature to support source level debug of a host based unit test. By default, this feature is disabled. Exceptions are caught by the unit test framework and are interpreted as a test failure. When a unit test is under development, bugs may generate exceptions or a unit test developer may want to trace the execution of unit tests to debug some unexpected behavior. Defining UNIT_TESTING_DEBUG in the DSC file or from the build command line allows exceptions to be caught by the host OS and allows the developer to debug their unit test under development or debug the Unit Test Framework itself. Cc: Sean Brogan Cc: Bret Barkelew Cc: Jiewen Yao Signed-off-by: Michael D Kinney Reviewed-by: Bret Barkelew --- UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc b/UnitTe= stFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc index c22085fae1..c4e6e0e0a6 100644 --- a/UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc +++ b/UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc @@ -20,6 +20,11 @@ [LibraryClasses.common.HOST_APPLICATION] =20 [BuildOptions] GCC:*_*_*_CC_FLAGS =3D -fno-pie +!ifdef $(UNIT_TESTING_DEBUG) + MSFT:*_*_*_CC_FLAGS =3D -D UNIT_TESTING_DEBUG=3D1 + GCC:*_*_*_CC_FLAGS =3D -D UNIT_TESTING_DEBUG=3D1 + XCODE:*_*_*_CC_FLAGS =3D -D UNIT_TESTING_DEBUG=3D1 +!endif =20 [BuildOptions.common.EDKII.HOST_APPLICATION] # --=20 2.21.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 (#62358): https://edk2.groups.io/g/devel/message/62358 Mute This Topic: https://groups.io/mt/75432218/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-