Commit ca0fb40a6f3ec2b1a254e0d5e5f307cbed541251

nulltoken 2011-02-05T17:18:27

Made test index_write_test() remove the test file it has created. It can now be run twice in a row without failing.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/t06-index.c b/tests/t06-index.c
index 72702e8..f46dfb3 100644
--- a/tests/t06-index.c
+++ b/tests/t06-index.c
@@ -146,6 +146,8 @@ BEGIN_TEST("write", index_write_test)
 	must_pass(git_filelock_commit(&out_file));
 
 	git_index_free(index);
+	
+	gitfo_unlink("index_rewrite");
 END_TEST