Crash-test vs Badcalls


(Brian Thomas Coyne) #1

Hi all,

I was just wondering what the primary differences were between the crash test and the badcall tests and if there were any pointers in how to go about getting the former to pass. Thanks.

Have a great rest of your snow day!


(Geoffrey Challen) #2

crash does things that should cause processes to crash. badcall provides arguments to system calls that should cause them to fail—but not crash. I’m not sure that this distinction is 100% categorical, but that’s the goal of these two tests.

In particular, crash needs a working implementation of fork, since it has to make sure that the main driver process doesn’t actually crash.