summaryrefslogtreecommitdiffstats
path: root/src/shared/test-tables.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/test-tables.h')
-rw-r--r--src/shared/test-tables.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/test-tables.h b/src/shared/test-tables.h
index e68ec60497..90210b9b59 100644
--- a/src/shared/test-tables.h
+++ b/src/shared/test-tables.h
@@ -33,11 +33,11 @@ static inline void _test_table(const char *name,
if (i >= 0 && i < size) {
if (sparse)
- assert_se(rev == i || rev == -1);
+ assert_se(rev == i || rev == -EINVAL);
else
assert_se(val != NULL && rev == i);
} else
- assert_se(val == NULL && rev == -1);
+ assert_se(val == NULL && rev == -EINVAL);
}
}