Commit 8392272eb9f79f84df5f00112dc0d68822234650

Stefan Sperling 2018-06-04T20:30:22

fail test gracefully instead of aborting

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/regress/idset/idset_test.c b/regress/idset/idset_test.c
index 4d14cc7..80a5654 100644
--- a/regress/idset/idset_test.c
+++ b/regress/idset/idset_test.c
@@ -105,7 +105,7 @@ idset_add_remove_iter(void)
 		goto done;
 	err = got_object_idset_add(set, &id2, NULL);
 	if (err == NULL)
-		abort();
+		return 0;
 	if (err->code != GOT_ERR_OBJ_EXISTS)
 		goto done;
 	err = NULL;