Mercurial > hg
annotate tests/blacklists/linux-vfat @ 31454:a5bad127128d
branchmap: handle nullrev in setcachedata
906be86990 recently changed to switch from:
self._rbcrevs[rbcrevidx:rbcrevidx + _rbcrecsize] = rec
to
pack_into(_rbcrecfmt, self._rbcrevs, rbcrevidx, node, branchidx)
This causes an exception if rbcrevidx is -1 (i.e. the nullrev). The old code
handled this because python handles out of bound sets to arrays gracefully. The
new code throws because the self._rbcrevs buffer isn't long enough to write 8
bytes to. Normally it would've been resized by the immediately preceding line,
but because the 0 length buffer is greater than the idx (-1) times the size, no
resize happens.
Setting the branch for the nullrev doesn't make sense anyway, so let's skip it.
This was caught by external tests in the Facebook extensions repo, but I've
added a test here that catches the issue.
author | Durham Goode <durham@fb.com> |
---|---|
date | Wed, 15 Mar 2017 15:48:57 -0700 |
parents | 352abbb0be88 |
children |
rev | line source |
---|---|
16339
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
1 # invalid filenames |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
2 test-add.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
3 test-init.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
4 test-clone.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
5 test-contrib.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
6 test-hgweb-raw.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
7 test-walk.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
8 |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
9 # no sockets or fifos |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
10 test-hup.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
11 |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
12 # no hardlinks |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
13 test-hardlinks.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
14 test-relink.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
15 |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
16 # exec bit problems |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
17 test-convert-bzr-114.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
18 test-convert-bzr-directories.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
19 test-convert-bzr-merges.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
20 test-convert-bzr-treeroot.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
21 test-convert-darcs.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
22 test-merge-tools.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
23 |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
24 # debugstate exec bit false positives |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
25 test-dirstate.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
26 test-filebranch.t |
6e738a0a3393
tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
27 test-merge-remove.t |