Fix test_uaccess
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 15 Dec 2015 17:26:51 +0000 (12:26 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 15 Dec 2015 17:26:51 +0000 (12:26 -0500)
commitc9d5a6940cf8c2f03820b37e6979fc3c8d154424
tree2ef968df207d7d8efa046e16a3ce1ed937c507f9
parentc8a6943551e4eb433c058e258bca0a99e713d581
Fix test_uaccess

It needed a switch_to(tmp).  I also reorganized it so that we can clean up
after a failure.  For instance, we need to switch_back and decref tmp.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/ktest/pb_ktests.c