Browse Source

Fix remaining test files: replace POSIX headers with platform_compat.h

nodeinfo-routing-update
Evgeny 2 months ago
parent
commit
20a3eaf73c
  1. BIN
      tests/bench_uasync_timeouts
  2. 10
      tests/bench_uasync_timeouts.c
  3. 10
      tests/debug_full_test.c
  4. 6
      tests/debug_performance.c
  5. 6
      tests/simple_test.c
  6. BIN
      tests/test_u_async_comprehensive
  7. 10
      tests/test_u_async_performance.c

BIN
tests/bench_uasync_timeouts

Binary file not shown.

10
tests/bench_uasync_timeouts.c

@ -3,12 +3,12 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include "../lib/platform_compat.h"
#include <stdint.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include "u_async.h"
#define NUM_TIMEOUTS 100

10
tests/debug_full_test.c

@ -3,11 +3,11 @@
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include "../lib/platform_compat.h"
#include <errno.h>
#include "u_async.h"

6
tests/debug_performance.c

@ -1,9 +1,9 @@
#include "../lib/u_async.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <fcntl.h>
#include "../lib/platform_compat.h"
#include "../lib/u_async.h"
#include "../lib/debug_config.h"

6
tests/simple_test.c

@ -2,9 +2,9 @@
#include "../lib/debug_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <fcntl.h>
#include "../lib/platform_compat.h"
static void test_callback(int fd, void* arg) {
(void)fd; (void)arg;

BIN
tests/test_u_async_comprehensive

Binary file not shown.

10
tests/test_u_async_performance.c

@ -7,12 +7,12 @@
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <unistd.h>
#include "../lib/platform_compat.h"
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <errno.h>
#include "u_async.h"

Loading…
Cancel
Save