I am working on Pintos Project # 2. I have implemented most of the system calls. In exec system call, there is a test exec-missing which according to comment in file checks this:
/* Tries to execute a nonexistent process.
The exec system call must return -1. */
#include <syscall.h>
#include "tests/lib.h"
#include "tests/main.h"
void
test_main (void)
{
msg ("exec(\"no-such-file\"): %d", exec ("no-such-file"));
}
I cant figure our how to check this in my exec code. I have put a check on the frame pointer correctly, what could be missing ?