diff options
| author | Frans Kaashoek <kaashoek@mit.edu> | 2019-08-20 13:04:12 -0400 | 
|---|---|---|
| committer | Frans Kaashoek <kaashoek@mit.edu> | 2019-08-20 13:04:12 -0400 | 
| commit | c612d452fdb03080c77517f6c1b32b8d11c6c40a (patch) | |
| tree | 037c5aa820a29f5b25be689756dd3a0f7f1c4a50 | |
| parent | b564fca24652dad80946b1e690db37dd87c66dbe (diff) | |
| download | xv6-labs-c612d452fdb03080c77517f6c1b32b8d11c6c40a.tar.gz xv6-labs-c612d452fdb03080c77517f6c1b32b8d11c6c40a.tar.bz2 xv6-labs-c612d452fdb03080c77517f6c1b32b8d11c6c40a.zip | |
validateint doesn't test something interesting on RISC-V; delete it.
| -rw-r--r-- | user/usertests.c | 26 | 
1 files changed, 1 insertions, 25 deletions
| diff --git a/user/usertests.c b/user/usertests.c index 13e7cce..285f161 100644 --- a/user/usertests.c +++ b/user/usertests.c @@ -1773,39 +1773,15 @@ sbrktest(void)  }  void -validateint(int *p) -{ -  /* XXX int res; -  asm("mov %%esp, %%ebx\n\t" -      "mov %3, %%esp\n\t" -      "int %2\n\t" -      "mov %%ebx, %%esp" : -      "=a" (res) : -      "a" (SYS_sleep), "n" (T_SYSCALL), "c" (p) : -      "ebx"); -  */ -} - -void  validatetest(void)  { -  int hi, pid; +  int hi;    uint64 p;    printf(stdout, "validate test\n");    hi = 1100*1024;    for(p = 0; p <= (uint)hi; p += PGSIZE){ -    if((pid = fork()) == 0){ -      // try to crash the kernel by passing in a badly placed integer -      validateint((int*)p); -      exit(); -    } -    sleep(0); -    sleep(0); -    kill(pid); -    wait(); -      // try to crash the kernel by passing in a bad string pointer      if(link("nosuchfile", (char*)p) != -1){        printf(stdout, "link should not succeed\n"); | 
