mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-28 02:21:08 +00:00
test: show 'Skipped' for disabled tests instead of 'Pass'
When a test suite returns an empty function list (e.g., a disabled test), run_test_in_child() was printing 'Pass' because the while(*func) loop never executed. This was misleading - a disabled test should not report as passing. Add a check for empty test list and print 'Skipped' instead. This makes disabled tests visible in CI output and prevents false positives. Fixes the issue where protocol_xigetselectedevents_test (disabled) was reporting 'Pass' instead of 'Skipped'. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
d23af8a9bf
commit
767b7413f1
1 changed files with 5 additions and 0 deletions
|
|
@ -43,6 +43,11 @@ run_test_in_child(const testfunc_t* (*suite)(void), const char *funcname)
|
||||||
|
|
||||||
printf("\n---------------------\n%s...\n", funcname);
|
printf("\n---------------------\n%s...\n", funcname);
|
||||||
|
|
||||||
|
if (!*func) {
|
||||||
|
printf(" Skipped\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
while (*func)
|
while (*func)
|
||||||
{
|
{
|
||||||
cpid = fork();
|
cpid = fork();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue