> Test case: Not some specific test case. Write 2 programs: one forks, clones, and execs randomly (but not going out of control), another does open("/proc"), getdents in a loop. Don't use shell scripts or readdir as they only bring overhead.
Run getdents in a loop and several forkers, see what happens.