1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

Add valgrind mocked test to CI (#7501)

Run valgrind on host mock example runs to catch more bugs in CI.  These
tests would have caught the problem in #7464 before users did.

Add a list of some randomly picked examples to run, and add an option to
run the loop exactly once in the host mock routine, so the test will
actually exit under valgrind.
This commit is contained in:
Earle F. Philhower, III
2020-08-03 19:00:51 -07:00
committed by GitHub
parent fc1aa554cd
commit a8e35a579c
3 changed files with 31 additions and 4 deletions

View File

@ -44,6 +44,8 @@ void setup() {
}
void loop() {
static bool wait = false;
Serial.print("connecting to ");
Serial.print(host);
Serial.print(':');
@ -87,5 +89,8 @@ void loop() {
Serial.println("closing connection");
client.stop();
delay(300000); // execute once every 5 minutes, don't flood remote service
if (wait) {
delay(300000); // execute once every 5 minutes, don't flood remote service
}
wait = true;
}