Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 66aa7db

Browse files
Merge pull request #208 from jboynes/native_tests
Allow tests to run on systems with case-insensitive filesystems and newer compilers.
2 parents f77c4b5 + da415e6 commit 66aa7db

File tree

76 files changed

+110
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+110
-82
lines changed

‎api/IPAddress.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,26 @@ IPAddress::IPAddress(const char *address)
9696

9797
String IPAddress::toString4() const
9898
{
99+
#pragma GCC diagnostic push
100+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
99101
char szRet[16];
100102
sprintf(szRet,"%u.%u.%u.%u", _address.bytes[IPADDRESS_V4_BYTES_INDEX], _address.bytes[IPADDRESS_V4_BYTES_INDEX + 1], _address.bytes[IPADDRESS_V4_BYTES_INDEX + 2], _address.bytes[IPADDRESS_V4_BYTES_INDEX + 3]);
101103
return String(szRet);
104+
#pragma GCC diagnostic pop
102105
}
103106

104107
String IPAddress::toString6() const
105108
{
109+
#pragma GCC diagnostic push
110+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
106111
char szRet[40];
107112
sprintf(szRet,"%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x",
108113
_address.bytes[0], _address.bytes[1], _address.bytes[2], _address.bytes[3],
109114
_address.bytes[4], _address.bytes[5], _address.bytes[6], _address.bytes[7],
110115
_address.bytes[8], _address.bytes[9], _address.bytes[10], _address.bytes[11],
111116
_address.bytes[12], _address.bytes[13], _address.bytes[14], _address.bytes[15]);
112117
return String(szRet);
118+
#pragma GCC diagnostic pop
113119
}
114120

115121
String IPAddress::toString() const

‎api/deprecated-avr-comp/avr/dtostrf.c.impl‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@
2929
char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
3030
asm(".global _printf_float");
3131

32+
#pragma GCC diagnostic push
33+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
3234
char fmt[20];
3335
sprintf(fmt, "%%%d.%df", width, prec);
3436
sprintf(sout, fmt, val);
3537
return sout;
38+
#pragma GCC diagnostic pop
3639
}
3740

‎test/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ project(test-ArduinoCore-API)
88

99
##########################################################################
1010

11-
include_directories(../api)
11+
include_directories(..)
1212
include_directories(include)
1313
include_directories(external/catch/v2.13.9/include)
1414

‎test/include/MillisFake.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* INCLUDE
1010
**************************************************************************************/
1111

12-
#include <Common.h>
12+
#include <api/Common.h>
1313

1414
/**************************************************************************************
1515
* FUNCTION DECLARATION

‎test/include/PrintMock.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include <string>
1313

14-
#include <Print.h>
14+
#include <api/Print.h>
1515

1616
/**************************************************************************************
1717
* CLASS DECLARATION

‎test/include/PrintableMock.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include <string>
1313

14-
#include <Printable.h>
14+
#include <api/Printable.h>
1515

1616
/**************************************************************************************
1717
* CLASS DECLARATION

‎test/include/StreamMock.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include <deque>
1313

14-
#include <Stream.h>
14+
#include <api/Stream.h>
1515

1616
/**************************************************************************************
1717
* CLASS DECLARATION

‎test/src/CanMsg/test_CanExtendedId.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <catch.hpp>
1010

11-
#include <CanMsg.h>
11+
#include <api/CanMsg.h>
1212

1313
/**************************************************************************************
1414
* NAMESPACE

‎test/src/CanMsg/test_CanMsg.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <catch.hpp>
1010

11-
#include <CanMsg.h>
11+
#include <api/CanMsg.h>
1212

1313
/**************************************************************************************
1414
* NAMESPACE

‎test/src/CanMsg/test_CanMsg_CopyCtor.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <catch.hpp>
1010

11-
#include <CanMsg.h>
11+
#include <api/CanMsg.h>
1212

1313
/**************************************************************************************
1414
* NAMESPACE

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /