[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

autoprop_tests.py is creating mangled test files on my system

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-10-03 01:11:38 CEST

From autoprop_tests.py:

def create_test_file(dir, name):
  "create a test file"
  fd = open(os.path.join(dir, name), 'w', 0644)

An example file that it creates:

> hexdump -C build/subversion/subversion/tests/clients/cmdline/local_tmp/autodir/foo.h
00000000 88 84 09 08 7c ba 38 40 62 61 7a 0a |....|8@baz.|

The first 8 bytes appear to have been overwritten with garbage. Sometimes the first two or three bytes have other values instead, and thus sometimes Subversion's heuristic determines that the file is binary and sets svn:mime-type=application/octet-stream, and then test fails, which is how I came to find this.

It seems like a Python bug or mis-use. I have recently performed a SuSE Online Update which did fetch an update to Python, supposedly just adding a missing symlink. The autoprops tests never used to fail when I was last working on Subversion, which was at the beginning of June, but nor did I ever check that those test files had the correct contents then.

Any ideas?

- Julian

Subversion trunk r11207

SuSE Linux 9.0

> uname -a
Linux athelstan 2.4.21-243-default #1 Thu Aug 12 15:22:14 UTC 2004 i686 i686 i386 GNU/Linux

> python -V
Python 2.3+

> rpm -q python

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Oct 3 01:12:41 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.