From: "Stefan-W. Hahn" <stefan.hahn@s-hahn•de>
To: git@vger•kernel.org
Cc: "Shawn O. Pearce" <spearce@spearce•org>
Subject: [PATCH] Test for failing pread() on cygwin.
Date: Sun, 7 Jan 2007 12:18:42 +0100 [thread overview]
Message-ID: <20070107111841.GC9909@scotty.home> (raw)
In-Reply-To: <20070107060007.GA10351@spearce.org>
Test for failing pread() on cygwin.
Signed-off-by: Stefan-W. Hahn <stefan.hahn@s-hahn•de>
---
And the test which fails on cygwin with 1.5.21 and original pread().
t/t5610-clone-fail.sh | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/t/t5610-clone-fail.sh b/t/t5610-clone-fail.sh
new file mode 100644
index 0000000..d30b25e
--- /dev/null
+++ b/t/t5610-clone-fail.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# Copyright (C) 2007 Stefan-W. Hahn <stefan.hahn@s-hahn•de>
+#
+
+test_description='test git-clone failure on cygwin using pread()
+
+This test covers the fact that git-clone fails, if pread() does not
+work properly, because the size of objects makes it neccessary to
+read data from a not zero offset.'
+
+. ./test-lib.sh
+
+# Need a repo to clone
+test_create_repo foo2
+
+GIT_AUTHOR_EMAIL=xxxxxxxx@yyyyyyyy•yyyyy.yyyyyyy.yyy
+GIT_COMMITTER_EMAIL=xxxxxxxx@yyyyyyyy•yyyyy.yyyyyyy.yyy
+export GIT_AUTHOR_EMAIL
+export GIT_COMMITTER_EMAIL
+
+(cd foo2 && echo "Hello" > file && git add file && git commit -m 'add file' >/dev/null 2>&1)
+(cd foo2 && echo "Hello2" >> file && git commit -a -m 'test' >/dev/null 2>&1)
+
+test_expect_success \
+ 'clone with resolving' \
+ 'git-clone foo2 bar2'
+
+test_done
--
1.5.0.rc0.g244a7
next prev parent reply other threads:[~2007-01-07 11:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-06 17:03 problem with git clone on cygwin Stefan-W. Hahn
2007-01-06 21:40 ` Juergen Ruehle
[not found] ` <20070106215919.GB8041@scotty.home>
2007-01-07 9:30 ` Stefan-W. Hahn
2007-01-07 10:46 ` Juergen Ruehle
2007-01-07 11:21 ` Stefan-W. Hahn
2007-01-07 6:00 ` Shawn O. Pearce
2007-01-07 11:17 ` [PATCH] Replacing the system call pread() with real mmap() Stefan-W. Hahn
2007-01-07 11:24 ` Shawn O. Pearce
2007-01-07 16:36 ` Stefan-W. Hahn
2007-01-07 17:10 ` Johannes Schindelin
2007-01-07 20:01 ` Stefan-W. Hahn
2007-01-09 18:51 ` [PATCH] Test for failing pread() on cygwin Stefan-W. Hahn
2007-01-09 18:51 ` [PATCH] Replacing the system call pread() with lseek()/xread()/lseek() sequence Stefan-W. Hahn
2007-01-09 20:21 ` Junio C Hamano
2007-01-07 11:18 ` Stefan-W. Hahn [this message]
2007-01-08 0:19 ` [PATCH] Test for failing pread() on cygwin Horst H. von Brand
2007-01-08 17:09 ` Stefan-W. Hahn
[not found] <11683687161816-git-send-email->
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070107111841.GC9909@scotty.home \
--to=stefan.hahn@s-hahn$(echo .)de \
--cc=git@vger$(echo .)kernel.org \
--cc=spearce@spearce$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox