From nobody Mon Feb 9 09:22:58 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+61250+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+61250+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1592180369; cv=none; d=zohomail.com; s=zohoarc; b=h8qEmZSOsgB8aqhu6I3K4ooHWcFOh3B9JrckM1J+B2RzE03yiB1a3AJqbxId3JKwOlwB6M3RuoxOPCTJMQucJJaFYF/FyK3WoQts+OQ2WJcFAG7p/fFMpY42DZ2Cvxc8Cn0w320SP5K/xmjAkkDkUYrUCzc7we5gdMSqSr304WQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592180369; 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=1F13ea/KUGDd6DSSgl5V2evUKwMfHRBQXdAP7bILjmg=; b=RTUGlanT6YPm0ttkpRwZArC/rRhqxvmjyn9y1cvFbr+t965tUQ4V+7KPLLX7tA21mpE9ut9H6BxkrR5fSLkaAlJ3CySgPCt9YmNdJHnTcX+dlldWtMxGcmY+mEGEwOLEu9RwoZMvZxXlQwb8ucOaScvo208A7Pk/KzgGg70UZVI= 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+61250+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 1592180369466833.1631120216208; Sun, 14 Jun 2020 17:19:29 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id IstPYY1788612xz7qZrB7KMR; Sun, 14 Jun 2020 17:19:29 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.7294.1592180365215983703 for ; Sun, 14 Jun 2020 17:19:25 -0700 IronPort-SDR: ezLvSDXqhCuFipBBdt+AAkmuVQfHPQALnWWX+DmkSGZDBWIxCyxBfOmbSuAsOxHDNq980HzTzF 6t9xybNbHBpw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2020 17:19:24 -0700 IronPort-SDR: solXagOmvsdmS1Wot23YzQkcjbSrcaKP2hdOgUFWs339AnnVuTs92af0UBy3t5NpAaMceJy2F7 GPkrVUH+iCCQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,513,1583222400"; d="scan'208";a="276370263" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.252.142.246]) by orsmga006.jf.intel.com with ESMTP; 14 Jun 2020 17:19:24 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Sean Brogan , Bret Barkelew , Jiewen Yao Subject: [edk2-devel] [Patch 07/15] UnitTestFrameworkPkg: Enable source level debug for host tests Date: Sun, 14 Jun 2020 17:19:10 -0700 Message-Id: <20200615001918.22164-8-michael.d.kinney@intel.com> In-Reply-To: <20200615001918.22164-1-michael.d.kinney@intel.com> References: <20200615001918.22164-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: PYBtFCG2v0qbtY7YUThcmMtUx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1592180369; bh=ugwWyl14X9PEUfyt8le05XvHQ2Ilt1aSSGlS5drYbEs=; h=Cc:Date:From:Reply-To:Subject:To; b=pl9e08qghJl1/3Imon/2GEq/ycPQS9epLUK+y5sOE5dbMzGFjNVA0xwXkJALgQVUG0V xSU6CIum90ejlwjOWSkI1WTV5Axjz3ODF+7crOnzdyiLdG9srql4xy0R40Yj0ChsTH0i6 svqcQdht86OEBSDVttvNlKdGg7j4gBZApJI= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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 --- UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc b/UnitTe= stFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc index f6a5b16096..5de3c45d5a 100644 --- a/UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc +++ b/UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc @@ -19,6 +19,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 (#61250): https://edk2.groups.io/g/devel/message/61250 Mute This Topic: https://groups.io/mt/74885916/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-