Commit 5f1ed966 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Order of includes doesn't matter in tests either

parent d0b6b9ab
#include <stdlib.h>
#include <errno.h>
#include <netinet/tcp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/tcp.h>
#include <sys/types.h>
#include "net-helper.h"
void run_server(void *ptr) {
......
#include <stdlib.h>
#include <assert.h>
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/wait.h>
#include <signal.h>
#include <assert.h>
#include <unistd.h>
#include "spawn.h"
int pidc = 0;
......
/* misc */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <arpa/inet.h>
#include <assert.h>
#include <errno.h>
/* inet_pton */
#include <arpa/inet.h>
/* getaddrinfo */
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
/* close */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
/* local */
#include "context.h"
#include "net-helper.h"
#include "object.h"
#include "test-helper.h"
#include "net-helper.h"
#define SETUP_CONNECT() \
redis_context c; \
......
/* misc */
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
/* local */
#include "format.h"
#include "test-helper.h"
......
/* misc */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <arpa/inet.h>
#include <assert.h>
#include <errno.h>
/* inet_pton */
#include <arpa/inet.h>
/* getaddrinfo */
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
/* local */
#include "handle.h"
#include "test-helper.h"
......
#ifndef _TEST_HELPER_H
#define _TEST_HELPER_H 1
#include <assert.h>
#include <errno.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <assert.h>
#include <errno.h>
/* gai_strerror */
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
/* local */
#include "spawn.h"
#include "handle.h"
#include "spawn.h"
#ifdef __GNUC__
#define UNUSED __attribute__ ((unused))
......
/* misc */
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* local */
#include "test-helper.h"
#include "parser.h"
#include "object.h"
#include "parser.h"
#include "test-helper.h"
void test_string(redis_parser *parser) {
const char *buf = "$5\r\nhello\r\n";
......
/* misc */
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
/* local */
#include "test-helper.h"
#include "parser.h"
#include "sds.h"
#include "test-helper.h"
typedef struct log_entry_s log_entry_t;
......
/* misc */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* local */
#include "request.h"
#include "test-helper.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment