Commit Graph

9 Commits

Author SHA1 Message Date
christos d56fcfc956 fix unused variable warnings 2013-10-19 17:45:00 +00:00
pgoyette d5bb255f0c Fix the error message handling. Thanks to Christos for noticing. 2013-02-20 02:22:48 +00:00
pgoyette ab7a59749e Replace printf() in child process with a simple write(STDERR_FILNO,...)
Thanks, Joerg.
2013-02-19 22:44:27 +00:00
pgoyette a3217a378f Rather than just sleeping and hoping that all the sub-processes are
ready to be ptrace()d, use a positive barrier.
2013-02-19 04:58:40 +00:00
pgoyette 7dec801027 White-space in for(...) loops.
Use #define instead of static variables to define test parameters.
No functional change.
2013-02-19 04:46:46 +00:00
pgoyette 593938d6da Create a variable for max number of passes to make. While we're here,
reduce the pass-count from 100 to 50;  this is more than enough to prove
that the test is working, and helps reduce the ever-increasing time it's
taking to run the entire test suite.
2013-02-19 03:22:54 +00:00
pgoyette 2fde625529 Wait a little bit after fork()ing the lockers to give them a chance to
get started before trying to ptrace(ATTACH).  Otherwise, the traced
process doesn't seem to resume properly upon ptrace(DETACH) and on the
next pass the ptrace(ATTACH) just hangs forever, causing the test to
time-out.

XXX The failure-to-resume-properly might actually be a kernel bug that
we need to follow up on.  But for now, let's make the test work as
intended.
2013-02-19 00:54:47 +00:00
pgoyette 706bd0b309 Check that we did get EDEADLK error, and fail immediately if we did not. 2013-02-18 20:59:19 +00:00
pgoyette 7206730159 Add ATF version of the file locking test 2012-11-07 14:00:38 +00:00