Petr Rockai
d78af3f646
Fix a reversed exit status from test harness.
2010-04-13 07:34:19 +00:00
Petr Rockai
0128c3703a
Optionally disable the verbose repeat of a failed test (export
...
LVM_TEST_NOVERBOSE=1).
2010-04-13 07:33:34 +00:00
Petr Rockai
e096611c96
In test harness, use fwrite(3) in place of write(2) to avoid mixing fd-level
...
and FILE-level IO on stdout.
2010-04-07 09:48:11 +00:00
Petr Rockai
c48d915f11
Keep the testsuite stats correct in spite of failed-test repetition.
2010-04-07 09:41:33 +00:00
Petr Rockai
a39d299df4
Do not pass NULL to setenv in the test harness.
2010-03-31 23:11:12 +00:00
Petr Rockai
7ca751c78d
Re-run failing tests with log/verbose=4 (-vvvv) to help with debugging.
2010-03-31 22:18:17 +00:00
Mikulas Patocka
3395d72881
Change exit() to _exit() in the child process. exit flushes stdio file buffers,
...
_exit doesn't. If there were some open files, an error in exec and subsequent
exit() would cause the buffers to be flushed twice.
Example:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
int main()
{
printf("buu");
if (!fork()) {
execl("/bin/true-not-exists", "/bin/true", NULL);
exit(1);
}
wait(NULL);
return 0;
}
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com
---
daemons/dmeventd/libdevmapper-event.c | 2 +-
lib/misc/lvm-exec.c | 2 +-
test/harness.c | 3 ++-
tools/dmsetup.c | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
2009-07-13 21:26:41 +00:00
Petr Rockai
98bea5edbf
Fix test output collection in harness.c.
2009-02-17 19:36:16 +00:00
Petr Rockai
fc5e78cf5e
Only fail when tests have failed, but not when they have been just skipped.
2009-02-16 16:49:21 +00:00
Petr Rockai
3dfe4e29af
Re-implement the test harness in C. This lets us pass through signals and
...
trigger proper test teardown upon harness interrupt or termination. I also
tweaked the output somewhat while I was at it...
2009-02-12 19:54:45 +00:00