Xenstore's unit test fails on read and write of big numbers if quota-maxsize is set to a lower number than those test cases use.
Output a special warning instead of a failure message in such cases and make the error non-fatal to the unit test. Signed-off-by: Kevin Stefanov <[email protected]> --- CC: Ian Jackson <[email protected]> CC: Wei Liu <[email protected]> CC: Juergen Gross <[email protected]> CC: Julien Grall <[email protected]> CC: Andrew Cooper <[email protected]> --- tools/tests/xenstore/test-xenstore.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/tests/xenstore/test-xenstore.c b/tools/tests/xenstore/test-xenstore.c index d3574b3fa2..ec8c63a65d 100644 --- a/tools/tests/xenstore/test-xenstore.c +++ b/tools/tests/xenstore/test-xenstore.c @@ -110,8 +110,13 @@ static int call_test(struct test *tst, int iters, bool no_clock) break; } - if ( ret ) - printf("%-10s: failed (ret = %d, stage %s)\n", tst->name, ret, stage); + /* Make E2BIG non-fatal to the test */ + if ( ret ){ + if( ret == 7 ) + printf("%-10s: Not run - argument list too long\n", tst->name); + else + printf("%-10s: failed (ret = %d, stage %s)\n", tst->name, ret, stage); + } else if ( !no_clock ) { printf("%-10s:", tst->name); -- 2.25.1
