summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2013-04-24 15:50:44 +0530
committerAmit Shah <amit.shah@redhat.com>2013-04-24 15:50:44 +0530
commit78227a4a7b3b04c24643aba90cf0c40f772740fb (patch)
treedcc6e7b9fa6d87dc143e9d62e965942e4e5386da
parent15932cdbf4ff45f30466332fbdb94a3231f495cb (diff)
downloadtest-virtserial-78227a4a7b3b04c24643aba90cf0c40f772740fb.tar.gz
test-virtserial-78227a4a7b3b04c24643aba90cf0c40f772740fb.tar.xz
test-virtserial-78227a4a7b3b04c24643aba90cf0c40f772740fb.zip
auto-test: check for <0 return for multi_open caseHEADmaster
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 <amit.shah@redhat.com>
-rw-r--r--auto-virtserial.c2
1 files changed, 1 insertions, 1 deletions
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);