Skip to content

Commit 0cb9778

Browse files
author
James Foster
committed
WIP
1 parent 8a1ef61 commit 0cb9778

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

SampleProjects/TestSomething/test/ethernet.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <Arduino.h>
12
#include <ArduinoUnitTests.h>
23
#include <Client.h>
34
#include <IPAddress.h>
@@ -3213,6 +3214,17 @@ uint8_t EthernetUDP::beginMulticast(IPAddress ip, uint16_t port)
32133214
return 1;
32143215
}
32153216

3217+
// ======================== missing methods ==========================
3218+
3219+
uint8_t EthernetClass::socketPeek(uint8_t s) { return 0; }
3220+
int EthernetClass::socketRecv(unsigned char, unsigned char*, short) { return 0; }
3221+
uint16_t EthernetClass::socketSend(unsigned char, unsigned char const*, unsigned short) { return 0; }
3222+
uint8_t EthernetClass::socketBegin(unsigned char, unsigned short) { return 0; }
3223+
void EthernetClass::socketClose(unsigned char);
3224+
EthernetClass::socketListen(unsigned char);
3225+
3226+
// ======================== tests ====================================
3227+
32163228
unittest(compile)
32173229
{
32183230
assertTrue(true);

lib/arduino_ci/cpp_library.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def build_for_test_with_configuration(test_file, aux_libraries, gcc_binary, ci_g
324324
executable = Pathname.new("unittest_#{base}.bin").expand_path
325325
File.delete(executable) if File.exist?(executable)
326326
arg_sets = []
327-
arg_sets << ["-std=c++0x", "-o", executable.to_s, "-DARDUINO=100"]
327+
arg_sets << ["-std=c++0x", "-o", executable.to_s, "-DARDUINO=10813"]
328328
if libasan?(gcc_binary)
329329
arg_sets << [ # Stuff to help with dynamic memory mishandling
330330
"-g", "-O1",

0 commit comments

Comments
 (0)