From a3be5339e274e83ae10c009955fa9d7d9af0bc70 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 18 Apr 2011 14:44:01 +0200 Subject: [PATCH] Rename test-runner to just runner And a minor fix to the VS solution. --- Makefile | 12 ++++++------ liboio-test.vcxproj | 8 ++++---- liboio.vcxproj | 8 ++++---- test/{test-runner-unix.c => runner-unix.c} | 4 ++-- test/{test-runner-unix.h => runner-unix.h} | 0 test/{test-runner-win32.c => runner-win32.c} | 4 ++-- test/{test-runner-win32.h => runner-win32.h} | 0 test/{test-runner.c => runner.c} | 2 +- test/{test-runner.h => runner.h} | 4 ++-- 9 files changed, 21 insertions(+), 21 deletions(-) rename test/{test-runner-unix.c => runner-unix.c} (98%) rename test/{test-runner-unix.h => runner-unix.h} (100%) rename test/{test-runner-win32.c => runner-win32.c} (98%) rename test/{test-runner-win32.h => runner-win32.h} (100%) rename test/{test-runner.c => runner.c} (99%) rename test/{test-runner.h => runner.h} (97%) diff --git a/Makefile b/Makefile index 6c7e9b5b..6be95b64 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CFLAGS=-ansi -g -Wall LINKFLAGS=-g -lm -all: oio.a test/test-runner +all: oio.a test/runner TESTS=test/echo-server.c \ test/test-pass-always.c \ @@ -9,8 +9,8 @@ TESTS=test/echo-server.c \ test/test-callback-stack.c \ test/test-timeout.c -test/test-runner: test/*.h test/test-runner.c test/test-runner-unix.c $(TESTS) oio.a - $(CC) $(CFLAGS) $(LINKFLAGS) -o test/test-runner test/test-runner.c test/test-runner-unix.c $(TESTS) oio.a +test/runner: test/*.h test/runner.c test/runner-unix.c $(TESTS) oio.a + $(CC) $(CFLAGS) $(LINKFLAGS) -o test/runner test/runner.c test/runner-unix.c $(TESTS) oio.a oio.a: oio-unix.o ev/ev.o $(AR) rcs oio.a oio-unix.o ev/ev.o @@ -30,11 +30,11 @@ ev/config.h: .PHONY: clean distclean test -test: test/test-runner - test/test-runner +test: test/runner + test/runner clean: - $(RM) -f *.o *.a test/test-runner + $(RM) -f *.o *.a test/runner $(MAKE) -C ev clean distclean: diff --git a/liboio-test.vcxproj b/liboio-test.vcxproj index 911a2315..5557dd30 100644 --- a/liboio-test.vcxproj +++ b/liboio-test.vcxproj @@ -141,14 +141,14 @@ - - + + - - + + diff --git a/liboio.vcxproj b/liboio.vcxproj index 0410b1ab..f23c5453 100644 --- a/liboio.vcxproj +++ b/liboio.vcxproj @@ -57,19 +57,19 @@ $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration) + $(Platform)\$(Configuration)\ $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration) + $(Platform)\$(Configuration)\ $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration) + $(Platform)\$(Configuration)\ $(SolutionDir)$(Platform)\$(Configuration)\ - $(Platform)\$(Configuration) + $(Platform)\$(Configuration)\ diff --git a/test/test-runner-unix.c b/test/runner-unix.c similarity index 98% rename from test/test-runner-unix.c rename to test/runner-unix.c index ee45ff45..2f574992 100644 --- a/test/test-runner-unix.c +++ b/test/runner-unix.c @@ -1,5 +1,5 @@ -#include "test-runner-unix.h" -#include "test-runner.h" +#include "runner-unix.h" +#include "runner.h" #include #include diff --git a/test/test-runner-unix.h b/test/runner-unix.h similarity index 100% rename from test/test-runner-unix.h rename to test/runner-unix.h diff --git a/test/test-runner-win32.c b/test/runner-win32.c similarity index 98% rename from test/test-runner-win32.c rename to test/runner-win32.c index fd2619ec..c26828e4 100644 --- a/test/test-runner-win32.c +++ b/test/runner-win32.c @@ -4,7 +4,7 @@ #include #include "test.h" -#include "test-runner.h" +#include "runner.h" int process_start(char *name, process_info_t *p) { @@ -104,7 +104,7 @@ int process_wait(process_info_t *vec, int n, int timeout) { if (n == 0) return 0; - ASSERT(n <= MAXIMUM_WAIT_OBJECTS) + ASSERT(n <= MAXIMUM_WAIT_OBJECTS); for (i = 0; i < n; i++) handles[i] = vec[i].process; diff --git a/test/test-runner-win32.h b/test/runner-win32.h similarity index 100% rename from test/test-runner-win32.h rename to test/runner-win32.h diff --git a/test/test-runner.c b/test/runner.c similarity index 99% rename from test/test-runner.c rename to test/runner.c index 7c38bc34..c403d641 100644 --- a/test/test-runner.c +++ b/test/runner.c @@ -1,6 +1,6 @@ #include "test.h" -#include "test-runner.h" +#include "runner.h" #include #include diff --git a/test/test-runner.h b/test/runner.h similarity index 97% rename from test/test-runner.h rename to test/runner.h index b25d9d0a..56ab1571 100644 --- a/test/test-runner.h +++ b/test/runner.h @@ -37,9 +37,9 @@ typedef struct { * Include platform-dependent definitions */ #ifdef _WIN32 -# include "test-runner-win32.h" +# include "runner-win32.h" #else -# include "test-runner-unix.h" +# include "runner-unix.h" #endif