Revision ee18de62b5ca1b94ac72799d38eb07cbb1e8d9f4 authored by Junio C Hamano on 08 January 2013, 19:16:52 UTC, committed by Junio C Hamano on 08 January 2013, 19:16:52 UTC
* jc/maint-test-portability:
  t4014: fix arguments to grep
  t9502: do not assume GNU tar
  t0200: "locale" may not exist
2 parent s 831d57a + 27f6342
Raw File
t4136-apply-check.sh
#!/bin/sh

test_description='git apply should exit non-zero with unrecognized input.'

. ./test-lib.sh

test_expect_success 'setup' '
	test_commit 1
'

test_expect_success 'apply --check exits non-zero with unrecognized input' '
	test_must_fail git apply --check - <<-\EOF
	I am not a patch
	I look nothing like a patch
	git apply must fail
	EOF
'

test_done
back to top