diff options
Diffstat (limited to 'kcmp')
-rw-r--r-- | kcmp/.gitignore | 2 | ||||
-rw-r--r-- | kcmp/Makefile | 9 | ||||
-rw-r--r-- | kcmp/kcmp_test.c | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/kcmp/.gitignore b/kcmp/.gitignore new file mode 100644 index 0000000..5a9b373 --- /dev/null +++ b/kcmp/.gitignore @@ -0,0 +1,2 @@ +kcmp_test +kcmp-test-file diff --git a/kcmp/Makefile b/kcmp/Makefile index 56eb552..8aabd82 100644 --- a/kcmp/Makefile +++ b/kcmp/Makefile @@ -1,11 +1,11 @@ uname_M := $(shell uname -m 2>/dev/null || echo not) ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/) ifeq ($(ARCH),i386) - ARCH := X86 + ARCH := x86 CFLAGS := -DCONFIG_X86_32 -D__i386__ endif ifeq ($(ARCH),x86_64) - ARCH := X86 + ARCH := x86 CFLAGS := -DCONFIG_X86_64 -D__x86_64__ endif @@ -15,7 +15,7 @@ CFLAGS += -I../../../../usr/include/ CFLAGS += -I../../../../arch/x86/include/ all: -ifeq ($(ARCH),X86) +ifeq ($(ARCH),x86) gcc $(CFLAGS) kcmp_test.c -o kcmp_test else echo "Not an x86 target, can't build kcmp selftest" @@ -25,5 +25,4 @@ run_tests: all @./kcmp_test || echo "kcmp_test: [FAIL]" clean: - rm -fr ./run_test - rm -fr ./test-file + $(RM) kcmp_test kcmp-test-file diff --git a/kcmp/kcmp_test.c b/kcmp/kcmp_test.c index fa4f1b3..dbba408 100644 --- a/kcmp/kcmp_test.c +++ b/kcmp/kcmp_test.c @@ -81,7 +81,7 @@ int main(int argc, char **argv) /* Compare with self */ ret = sys_kcmp(pid1, pid1, KCMP_VM, 0, 0); if (ret) { - printf("FAIL: 0 expected but %li returned (%s)\n", + printf("FAIL: 0 expected but %d returned (%s)\n", ret, strerror(errno)); ret = -1; } else |