Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork130
Closed
Labels
Description
Running the unit tests on a VM on a laptop, I get intermittent failures of this testcase. On one run it will pass, on another, with the same binary, it will fail. I realize this isn't a typical target CPU but I wonder if there's an underlying issue.
ubuntu@foo:~/ArduinoCore-API/test/build$ bin/test-ArduinoCore-API===============================================================================All tests passed (968 assertions in 304 test cases)ubuntu@foo:~/ArduinoCore-API/test/build$ bin/test-ArduinoCore-API~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~test-ArduinoCore-API is a Catch v2.13.9 host application.Run with -? for options-------------------------------------------------------------------------------Testing String::compareTo(const char *) When: Passed string is empty-------------------------------------------------------------------------------/home/ubuntu/ArduinoCore-API/test/src/String/test_compareTo.cpp:48.............................................................................../home/ubuntu/ArduinoCore-API/test/src/String/test_compareTo.cpp:51: FAILED: REQUIRE( str1.compareTo("") == strcmp(str1.c_str(), str2.c_str()) )with expansion: 144 == 143===============================================================================test cases: 304 | 303 passed | 1 failedassertions: 968 | 967 passed | 1 failedubuntu@foo:~/ArduinoCore-API/test/build$
Environment is an Ubuntu VM running under Multipass on an Apple M1 laptop.
$ uname -aLinux foo 6.2.0-32-generic #32-Ubuntu SMP PREEMPT_DYNAMIC Mon Aug 14 12:37:51 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux