summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ubi-tests/mkvol_bad.c2
-rw-r--r--tests/ubi-tests/mkvol_basic.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ubi-tests/mkvol_bad.c b/tests/ubi-tests/mkvol_bad.c
index 7e46726..a5143e3 100644
--- a/tests/ubi-tests/mkvol_bad.c
+++ b/tests/ubi-tests/mkvol_bad.c
@@ -200,7 +200,7 @@ static int test_mkvol(void)
* Note, because of gluebi we may be unable to create
* dev_info.max_vol_count devices (MTD restrictions).
*/
- if (errno == ENFILE)
+ if (errno == ENFILE || errno == ENOSPC)
break;
failed("ubi_mkvol");
errorm("vol_id %d", i);
diff --git a/tests/ubi-tests/mkvol_basic.c b/tests/ubi-tests/mkvol_basic.c
index c7c6984..cc3f7ba 100644
--- a/tests/ubi-tests/mkvol_basic.c
+++ b/tests/ubi-tests/mkvol_basic.c
@@ -178,7 +178,7 @@ static int mkvol_multiple(void)
req.name = nm;
if (ubi_mkvol(libubi, node, &req)) {
- if (errno == ENFILE) {
+ if (errno == ENFILE || errno == ENOSPC) {
max = i;
break;
}