From 1195ca0bd84693fd56f6d34a9f2de3107b9820bf Mon Sep 17 00:00:00 2001 From: Miguel Date: Thu, 13 Sep 2018 23:26:47 +0200 Subject: ext2 review --- test/pipetest.c | 55 ------------------------------------------------------- test/selftest.c | 14 -------------- test/selftest.h | 1 - 3 files changed, 70 deletions(-) delete mode 100644 test/pipetest.c delete mode 100644 test/selftest.c delete mode 100644 test/selftest.h (limited to 'test') diff --git a/test/pipetest.c b/test/pipetest.c deleted file mode 100644 index 448f001..0000000 --- a/test/pipetest.c +++ /dev/null @@ -1,55 +0,0 @@ -#include -#include -#include - -int main(int argc, char *argv[]) -{ - printf("LINUX PIPE TEST\n"); - - if(argc<=1) - { - printf("one argument please [read|write]\n"); - } - - if(!strcmp(argv[1],"read")) - { - FILE *p=fopen("./testpipe","r"); - printf("opened for reading\n"); - printf("feof: %i\n",feof(p)); - - if(p==NULL) - { - int err=errno; - printf("Opening pipe failed with errno %d : %s\n",err,strerror(err)); - } - - while(1) - { - char buf[256]; - int ret=fread(buf,1,10,p); - buf[10]=0; - printf("read: %i %s\n",ret,buf); - printf("feof: %i\n",feof(p)); - if (feof(p)) break; - } - } - - if(!strcmp(argv[1],"write")) - { - FILE *p=fopen("./testpipe","a"); - printf("opened for writing\n"); - if(p==NULL) - { - int err=errno; - printf("Opening pipe failed with errno %d : %s\n",err,strerror(err)); - } - fwrite("DUPA123",1,7,p); - fwrite("DUPA123",1,7,p); - for(int i=0;i<10000;i++) - { - fwrite("DUPA123",1,7,p); - } - //fclose(p); - } - return 0; -} diff --git a/test/selftest.c b/test/selftest.c deleted file mode 100644 index ef0b80a..0000000 --- a/test/selftest.c +++ /dev/null @@ -1,14 +0,0 @@ -#include "kernel.h" -#include "log.h" - -void selftest_stack_overflow() -{ - klog("recurse.."); - selftest_stack_overflow(); -} - -void selftest_run() -{ - klog ("RUNNING SOME IN-KERNEL SELFTESTS"); - selftest_stack_overflow(); -} diff --git a/test/selftest.h b/test/selftest.h deleted file mode 100644 index f95ebda..0000000 --- a/test/selftest.h +++ /dev/null @@ -1 +0,0 @@ -void selftest_run(); -- cgit v1.2.3