From 78227a4a7b3b04c24643aba90cf0c40f772740fb Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Wed, 24 Apr 2013 15:50:44 +0530 Subject: auto-test: check for <0 return for multi_open case Instead of testing for -EMFILE, test for < 0 (error) for the multi-open case: -EMFILE is a bad error to report, -EBUSY is the right one for this case, and this was added to the upstream kernel in commit 2d57d36ef32e2d9073b0ca3e4e4b2dc32897932f so ensure we adapt to that change. Signed-off-by: Amit Shah --- auto-virtserial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-virtserial.c b/auto-virtserial.c index 5ca945b..2b52d03 100644 --- a/auto-virtserial.c +++ b/auto-virtserial.c @@ -406,7 +406,7 @@ static int test_multiple_open(int nr) return err; ret = guest_open_port(nr); - err = result(__func__, true, "multiple", ret, -EMFILE, 0, OP_EQ, true); + err = result(__func__, true, "multiple", ret, 0, 0, OP_LT, true); ret = guest_close_port(nr); if (ret) debug("%s: close return: %d\n", __func__, ret); -- cgit