This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] support: Introduce new subdirectory for test infrastructure
- From: Stefan Liebler <stli at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Date: Mon, 12 Dec 2016 14:11:55 +0100
- Subject: Re: [PATCH] support: Introduce new subdirectory for test infrastructure
- Authentication-results: sourceware.org; auth=none
- References: <425c6518-69f7-e68d-9599-d81c8c137c96@redhat.com>
Hi Florian,
I've observed a new test-failure string/tst-strcoll-overflow after this
patch has been commited.
The test uses:
#define TIMEOUT 300
#define EXPECTED_SIGNAL SIGALRM
#define EXPECTED_STATUS 0
With the old test-skeleton, it either timed out or strcoll returned in
time and do_test returns 0. The test passes as WEXITSTATUS (status) ==
EXPECTED_STATUS.
With the new test-driver, the out-file contains:
0
Expected signal 'Alarm clock' from child, got none
If do_test would return e.g. 2 and EXPECTED_STATUS is defined to 2, the
test would pass. But if the testcase is then called with --direct, it
would return 2 instead of 0!
Shall the new test-driver be able to handle this case?
Bye
Stefan