<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4002-diff-basic.sh, branch gitk-resize-error</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=gitk-resize-error</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=gitk-resize-error'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2021-10-13T01:23:24Z</updated>
<entry>
<title>leak tests: mark some misc tests as passing with SANITIZE=leak</title>
<updated>2021-10-13T01:23:24Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-10-12T13:56:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=7ff24785cb7e1655f1295dce3e0269348bbbbe02'/>
<id>urn:sha1:7ff24785cb7e1655f1295dce3e0269348bbbbe02</id>
<content type='text'>
Mark some tests that match "*{mktree,commit,diff,grep,rm,merge,hunk}*"
as passing when git is compiled with SANITIZE=leak. They'll now be
listed as running under the "GIT_TEST_PASSING_SANITIZE_LEAK=true" test
mode (the "linux-leaks" CI target).

These were picked because we still have a lot of failures in adjacent
areas, and we didn't have much if any coverage of e.g. grep and diff
before this change, we could still whitelist a lot more tests, but
let's stop for now.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t: remove test_oid_init in tests</title>
<updated>2020-07-30T16:16:49Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2020-07-29T23:14:28Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=e023ff0691ca207d421a0e75ea23c132ada9142a'/>
<id>urn:sha1:e023ff0691ca207d421a0e75ea23c132ada9142a</id>
<content type='text'>
Now that we call test_oid_init in the setup for all test scripts,
there's no point in calling it individually.  Remove all of the places
where we've done so to help keep tests tidy.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Reviewed-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4002: make hash independent</title>
<updated>2019-08-26T15:55:45Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2019-08-26T01:43:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=c1f3dfcc23e92fa4e69271e6c655f5c54cb1ce7f'/>
<id>urn:sha1:c1f3dfcc23e92fa4e69271e6c655f5c54cb1ce7f</id>
<content type='text'>
Factor out the hard-coded object IDs and use test_oid to provide values
for both SHA-1 and SHA-256.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t: switch $_x40 to $OID_REGEX</title>
<updated>2018-05-14T02:02:01Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2018-05-13T02:24:15Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=2ece6ad2819078733d8fb8a7cd47929786631ed1'/>
<id>urn:sha1:2ece6ad2819078733d8fb8a7cd47929786631ed1</id>
<content type='text'>
Switch all uses of $_x40 to $OID_REGEX so that they work correctly with
larger hashes.  This commit was created by using the following sed
command to modify all files in the t directory except t/test-lib.sh:

  sed -i 's/\$_x40/$OID_REGEX/g'

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t: switch $_z40 to $ZERO_OID</title>
<updated>2018-05-14T02:02:00Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2018-05-13T02:24:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=8125a58b912e52eba7889e1dba9fe6d711b0ffdf'/>
<id>urn:sha1:8125a58b912e52eba7889e1dba9fe6d711b0ffdf</id>
<content type='text'>
Switch all uses of $_z40 to $ZERO_OID so that they work correctly with
larger hashes.  This commit was created by using the following sed
command to modify all files in the t directory except t/test-lib.sh:

  sed -i 's/\$_z40/$ZERO_OID/g'

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/fix-diff-files-unmerged'</title>
<updated>2011-05-06T17:52:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-05-06T17:52:58Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=22dbeee715e4c9fae3e3fdc1f3a2c4a6ec90e593'/>
<id>urn:sha1:22dbeee715e4c9fae3e3fdc1f3a2c4a6ec90e593</id>
<content type='text'>
* jc/fix-diff-files-unmerged:
  diff-files: show unmerged entries correctly
  diff: remove often unused parameters from diff_unmerge()
  diff.c: return filepair from diff_unmerge()
  test: use $_z40 from test-lib
</content>
</entry>
<entry>
<title>test: use $_z40 from test-lib</title>
<updated>2011-04-24T05:34:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-04-24T05:34:13Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=3749fde561ad495dea74b0d3a13bba571068396d'/>
<id>urn:sha1:3749fde561ad495dea74b0d3a13bba571068396d</id>
<content type='text'>
There is no need to duplicate the definition of $_z40 and $_x40 that
test-lib.sh supplies the test scripts.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4002 (diff-basic): use test_might_fail for commands that might fail</title>
<updated>2010-10-06T20:26:11Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2010-10-03T20:00:03Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=b62b3436ffa6acc27a431f29fb25aa08eb441940'/>
<id>urn:sha1:b62b3436ffa6acc27a431f29fb25aa08eb441940</id>
<content type='text'>
Also replace '|| return 1' by '&amp;&amp;' to allow chain of operations to be
checked for proper return status, and modify the update-index command
as suggested by Jonathan Nieder to not exit early but try to make sure
files that match the work tree are marked as matching.

Acked-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: use "test_cmp", not "diff", when verifying the result</title>
<updated>2010-05-31T23:59:27Z</updated>
<author>
<name>Gary V. Vaughan</name>
<email>git@mlists.thewrittenword.com</email>
</author>
<published>2010-05-14T09:31:37Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=4fdf71be1ca3a817851a14f91b75e7d30f885a48'/>
<id>urn:sha1:4fdf71be1ca3a817851a14f91b75e7d30f885a48</id>
<content type='text'>
In tests, call test_cmp rather than raw diff where possible (i.e. if
the output does not go to a pipe), to allow the use of, say, 'cmp'
when the default 'diff -u' is not compatible with a vendor diff.

When that is not possible, use $DIFF, as set in GIT-BUILD-OPTIONS.

Signed-off-by: Gary V. Vaughan &lt;gary@thewrittenword.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Test that diff can read from stdin</title>
<updated>2009-02-20T08:02:40Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-02-19T11:13:36Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=85569d7498f3933d96a7604512f8832c73127067'/>
<id>urn:sha1:85569d7498f3933d96a7604512f8832c73127067</id>
<content type='text'>
Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
