修复XTSGPIO测试造成按键TP都失效的问题。
authorSnickerSun <snickersun@163.com>
Wed, 6 Dec 2023 09:55:16 +0000 (17:55 +0800)
committerSnickerSun <snickersun@163.com>
Wed, 6 Dec 2023 09:55:16 +0000 (17:55 +0800)
code/sdk/open_source/openharmony/test/xts/acts/iothardware_lite/peripheral_hal/CMakeLists.txt
code/sdk/open_source/openharmony/test/xts/acts/iothardware_lite/peripheral_hal/src/iot_gpio_test.c

index ca71f4f..db639f6 100644 (file)
 #include "hctest.h"
 #include "iot_errno.h"
 #include "iot_gpio.h"
+#include "platform_core.h"
 
 #define TEST_GPIO_SIZE 8
-const unsigned int COMPILABILITY_TEST_GPIO = 0xFFFFFFFF;
+const unsigned int COMPILABILITY_TEST_GPIO = S_MGPIO10;//0xFFFFFFFF;  S_MGPIO10
 
 /**
  * @tc.desc      : register a test suite, this suite is used to test basic flow and interface dependency
@@ -173,7 +174,9 @@ LITE_TEST_CASE(IotGpioTestSuite, testIoTGpio010, Function | MediumTest | Level1)
  */
 LITE_TEST_CASE(IotGpioTestSuite, testIoTGpio011, Function | MediumTest | Level1)
 {
+    #ifndef XTS_SKIP_GPIO_DEINIT
     IoTGpioDeinit(COMPILABILITY_TEST_GPIO);
+    #endif
 };
 
 RUN_TEST_SUITE(IotGpioTestSuite);