From ffaa201da90f2c8b4cc3aee79e053344daa06644 Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Tue, 14 Feb 2023 18:20:50 +0900 Subject: [PATCH] [Non-ACR][MachineLearning] Remove a TC using TIZEN PPM API - Remove a TC which uses PPM APIs - that will be deprecated since Tizen 7.5 REF: https://mosaic.sec.samsung.net/kms/comty.do?comtyId=2305148&menuId=2305189&postId=2542952420&page=view&type=LIST Change-Id: I27331ec4fbb703106b7e0ed1fc2a66c70f20c262 Signed-off-by: Yongjoo Ahn --- .../testcase/TSPipeline.cs | 41 ---------------------- 1 file changed, 41 deletions(-) diff --git a/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSPipeline.cs b/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSPipeline.cs index 846d8b0..4726730 100755 --- a/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSPipeline.cs +++ b/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSPipeline.cs @@ -213,47 +213,6 @@ namespace Tizen.MachineLearning.Inference.Tests { } [Test] - [Category("P2")] - [Description("Check InvalidOperationException when creating pipeline instance")] - [Property("SPEC", "Tizen.MachineLearning.Inference.Pipeline.Pipeline C")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "CONSTX")] - [Property("COVPARAM", "string")] - [Property("AUTHOR", "Gichan Jang, gichan2.jang@samsung.com")] - public void Pipeline_INIT_CHECK_UnauthorizedAccessException() - { - bool _isPrivacyPrivilegeSupported = false; - try - { - /* Check the privilege support */ - Information.TryGetValue(PrivilegeFeatureKey, out _isPrivacyPrivilegeSupported); - - string description = "tizencamvideosrc ! videoconvert ! videoscale ! video/x-raw,format=RGB,width=320,height=240 ! tensor_converter ! tensor_sink"; - - /* TEST CODE */ - var pipeline_handle = new Pipeline(description); - - Assert.True(false, "DO NOT COME HERE!"); - } - catch (Exception e) - { - if (e is NotSupportedException) - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "NotSupportedException occurs"); - Assert.IsTrue(_isMachineLeanringInferenceSupported == false, "Invalid NotSupportedException"); - } - else if (e is UnauthorizedAccessException) - { - Assert.Pass("UnauthorizedAccessException: passed!"); - } - else - { - Assert.IsTrue(_isPrivacyPrivilegeSupported == false, e.Message); - } - } - } - - [Test] [Category("P1")] [Description("Get the state of the pipeline and check exception")] [Property("SPEC", "Tizen.MachineLearning.Inference.Pipeline.State A")] -- 2.7.4