{"thread":{"id":"23474","subject":"[PATCH] t1010-mktree: Adjust expected result to code and documentation","startedAt":"2010-04-15T09:34:07Z","lastAt":"2010-04-15T09:34:07Z","messageCount":1,"participants":["Michael J Gruber"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"139570","messageId":"09645aa273ba1215c6c34a5727ef97261ac0a149.1271323912.git.git@drmicha.warpmail.net","threadId":"23474","inReplyTo":null,"subject":"[PATCH] t1010-mktree: Adjust expected result to code and documentation","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-04-15T09:34:07Z","receivedAt":"2010-04-15T09:34:07Z","isPatch":true,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"The last two tests here were always supposed to fail in the sense\nthat, according to code and documentation, mktree should read non-recursive\nls-tree output, but not recursive one, and therefore explicitely refuses\nto deal with slashes.\n\nAdjust the test (must_fail) so that it succeeds when mktree dies on\nslashes.\n\nSigned-off-by: Michael J Gruber <git@drmicha.warpmail.net>\n---\nCC'ed to you, Junio, as the original test author, according\nto the new guidelines :)\n\n t/t1010-mktree.sh |   10 ++++------\n 1 files changed, 4 insertions(+), 6 deletions(-)\n\ndiff --git a/t/t1010-mktree.sh b/t/t1010-mktree.sh\nindex 9956e3a..b946f87 100755\n--- a/t/t1010-mktree.sh\n+++ b/t/t1010-mktree.sh\n@@ -58,14 +58,12 @@ test_expect_success 'allow missing object with --missing' '\n \ttest_cmp tree.missing actual\n '\n \n-test_expect_failure 'mktree reads ls-tree -r output (1)' '\n-\tgit mktree <all >actual &&\n-\ttest_cmp tree actual\n+test_expect_success 'mktree refuses to read ls-tree -r output (1)' '\n+\ttest_must_fail git mktree <all >actual\n '\n \n-test_expect_failure 'mktree reads ls-tree -r output (2)' '\n-\tgit mktree <all.withsub >actual &&\n-\ttest_cmp tree.withsub actual\n+test_expect_success 'mktree refuses to read ls-tree -r output (2)' '\n+\ttest_must_fail git mktree <all.withsub >actual\n '\n \n test_done\n-- \n1.7.1.rc1.248.gcefbb\n"}]}