Skip to content

Commit

Permalink
Arduino & windows fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Feb 10, 2024
1 parent 975c5f8 commit 234d0e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ arm:
arm-none-eabi-gcc $(SOURCES) syscalls.c -I.. -W -Wall -Wextra -Os -mcpu=cortex-m0 -mfloat-abi=soft -nostdlib -lc -lgcc -e main

arduino:
curl -s http://downloads.arduino.cc/arduino-1.8.13-linux64.tar.xz -o /tmp/a.tgz
curl -Ls http://downloads.arduino.cc/arduino-1.8.13-linux64.tar.xz -o /tmp/a.tgz
tar -xf /tmp/a.tgz
mv arduino-* $@

Expand Down
3 changes: 2 additions & 1 deletion test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,11 @@ static void test_json(void) {

static void test_base64(void) {
char a[100], b[100];
const char *expected = "\"aGk=\"";
memset(a, ' ', sizeof(a));
memset(b, ' ', sizeof(b));
xsnprintf(a, sizeof(a), "%m", fmt_b64, 2, "hi");
assert(strcmp(a, "\"aGk=\"") == 0);
assert(strcmp(a, expected) == 0);
assert(json_get_b64(a, (int) strlen(a), "$", b, sizeof(b)) == 2);
assert(strcmp(b, "hi") == 0);
}
Expand Down

0 comments on commit 234d0e1

Please sign in to comment.