Skip to content

Commit abc9f8f

Browse files
committed
pass test for unsupported chips
1 parent 5f168a4 commit abc9f8f

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

tests/touch/touch.ino

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#include <unity.h>
2+
#include "soc/soc_caps.h"
3+
4+
#if SOC_TOUCH_SENSOR_NUM > 0
5+
26
#include "driver/touch_pad.h"
37

48
#if CONFIG_IDF_TARGET_ESP32
@@ -150,7 +154,6 @@ void test_touch_errors(void) {
150154
TEST_ASSERT_FALSE(touchRead(NO_TOUCH_GPIO));
151155
}
152156

153-
154157
void setup() {
155158
Serial.begin(115200);
156159
while (!Serial) {
@@ -167,3 +170,25 @@ void setup() {
167170
void loop() {
168171

169172
}
173+
174+
#endif
175+
//PASS TEST for UNSUPPORTED CHIPS
176+
177+
void test_pass(void){
178+
TEST_ASSERT_EQUAL(1, 1);
179+
}
180+
181+
void setup() {
182+
Serial.begin(115200);
183+
while (!Serial) {
184+
;
185+
}
186+
187+
UNITY_BEGIN();
188+
RUN_TEST(test_pass);
189+
UNITY_END();
190+
}
191+
192+
void loop() {
193+
194+
}

0 commit comments

Comments
 (0)