Project 2 Test Cases

The are short descriptions of test cases run by the AutoGrader for Project 2.
Please check that your program doesn't print out your debugging statements or take unusually long, this will probably give you a resourceLimitExceed error.

  1. Filesystem Syscall Tests
    If anything is printed to the console aside from what is expected, the test will fail.

    1. testID 0 : Creates a file, checks syscall creat works
    2. testID 2 : tests if your syscall close actually closes the file
    3. testID 3 : tests if your syscall open fails gracefully when stubFileSystem's openfile limit's exceeded
    4. testID 5 : tests your syscall read by reading some bytes from a file
    5. testID 6 : tests that each of your processes's file descriptors are independent from other processes
    6. testID 10: tests that stdin uses console
  2. Multiprogramming Syscall Tests

    1. testID 2 : tests your syscall join to a child
    2. testID 11 : tests writeVirtualMemory small valid range, make sure wrote right data
  3. Lottery Scheduler Tests
    The total number of tickets in the system is guaranteed not to exceed Integer.MAX_VALUE.

    1. Small lottery scheduler test with priority donation