summaryrefslogtreecommitdiff
path: root/tests/refs/foreachglob.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/refs/foreachglob.c')
-rw-r--r--tests/refs/foreachglob.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/refs/foreachglob.c b/tests/refs/foreachglob.c
index a09191e79..a13529376 100644
--- a/tests/refs/foreachglob.c
+++ b/tests/refs/foreachglob.c
@@ -62,6 +62,11 @@ void test_refs_foreachglob__retrieve_local_branches(void)
assert_retrieval("refs/heads/*", 12);
}
+void test_refs_foreachglob__retrieve_nonexistant(void)
+{
+ assert_retrieval("refs/nonexistent/*", 0);
+}
+
void test_refs_foreachglob__retrieve_partially_named_references(void)
{
/*