From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=eric.jin@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C63662113A0E9 for ; Wed, 10 Oct 2018 19:29:36 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2018 19:29:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,366,1534834800"; d="scan'208";a="271371782" Received: from shwdeopenpsi175.ccr.corp.intel.com ([10.239.9.140]) by fmsmga006.fm.intel.com with ESMTP; 10 Oct 2018 19:29:35 -0700 From: Eric Jin To: edk2-devel@lists.01.org Date: Thu, 11 Oct 2018 10:29:24 +0800 Message-Id: <20181011022924.14052-1-eric.jin@intel.com> X-Mailer: git-send-email 2.9.0.windows.1 Subject: [PATCH][edk2-test]uefi-sct\SctPkg: Consider the corner case that no device is on the slot. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2018 02:29:37 -0000 GetNextSlot() returns the slot number on the controller, but the SD card specified by Slot may not exist on the SD controller. Cc: Supreeth Venkatesh Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Jin --- .../Protocol/SDMMCPassThru/BlackBoxTest/SDMMCPassThruBBTestFunction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SDMMCPassThru/BlackBoxTest/SDMMCPassThruBBTestFunction.c b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SDMMCPassThru/BlackBoxTest/SDMMCPassThruBBTestFunction.c index 6b001cd..05005a0 100644 --- a/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SDMMCPassThru/BlackBoxTest/SDMMCPassThruBBTestFunction.c +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/SDMMCPassThru/BlackBoxTest/SDMMCPassThruBBTestFunction.c @@ -1,7 +1,7 @@ /** @file Copyright 2017 Unified EFI, Inc.
- Copyright (c) 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -416,7 +416,7 @@ BBTestBuildDevicePathFunctionTest ( (UINTN)DevicePath->SubType, (UINTN)(DevicePath->Length[0] | DevicePath->Length[1] << 8) ); - } else if (Status == EFI_OUT_OF_RESOURCES) + } else if ((Status == EFI_OUT_OF_RESOURCES) || (Status == EFI_NOT_FOUND)) AssertionType = EFI_TEST_ASSERTION_WARNING; else AssertionType = EFI_TEST_ASSERTION_FAILED; -- 2.9.0.windows.1