openposix/fork/7-1.c: A bug fix
PATCH 1/1 openposix/fork/7-1.c: A bug fix
The function output interferes with the variable errno, that leads to the false positive result on limited test setups. The issue fixed.
Signed-off-by Bogdan Lezhepekov <[email protected]>
--- .../open_posix_testsuite/conformance/interfaces/fork/7-1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
testcases/open_posix_testsuite/conformance/interfaces/fork/7-1.c +3 -1
@@ -53,12 +53,14 @@ static void read_catalog(nl_catd cat, char *who) {char *msg =NULL ;int i, j; - errno =0 ;#if VERBOSE >0 output ("Reading the message catalog from %s...\n" , who);#endif +/* the output function interferes with errno */ + errno =0 ; +for (i =1 ; i <=2 ; i++) {for (j =1 ; j <=2 ; j++) {
Signature · 1 line
2.26.2