summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2006-01-21 21:44:38 +0000
committerAndreas Gruenbacher <agruen@suse.de>2006-01-21 21:44:38 +0000
commit1455b44c6a3265cbfda24c695eb2dd231faa854b (patch)
tree75901808a622467a5d29c85b281622718d1ba499 /test
parente9d3b15754c61017423b3abc8cf6baab78d04a7e (diff)
downloadquilt-1455b44c6a3265cbfda24c695eb2dd231faa854b.tar.gz
- GNU patch 2.5 messages differ slightly from the messages of more
recent versions. Recognize the old version's output when fixing patch's output in the push command, and also accept the old version's output in the test suite.
Diffstat (limited to 'test')
-rw-r--r--test/comments.test2
-rw-r--r--test/conflicts.test2
-rw-r--r--test/create-delete.test6
-rw-r--r--test/example1.test8
-rw-r--r--test/import.test2
-rw-r--r--test/new.test12
-rw-r--r--test/one.test2
-rw-r--r--test/two.test2
8 files changed, 18 insertions, 18 deletions
diff --git a/test/comments.test b/test/comments.test
index cb440f6..f6115ab 100644
--- a/test/comments.test
+++ b/test/comments.test
@@ -23,7 +23,7 @@ accidentally removed.
$ quilt push
> Applying patch %{P}test.diff
- > patching file f
+ >~ patching file `?f'?
>
> Now at patch %{P}test.diff
diff --git a/test/conflicts.test b/test/conflicts.test
index bc8b600..f543678 100644
--- a/test/conflicts.test
+++ b/test/conflicts.test
@@ -66,7 +66,7 @@ anymore, then the patch is fixed.
$ quilt push -qf
> Applying patch %{P}a.diff
- > 1 out of 2 hunks FAILED -- saving rejects to file one.txt.rej
+ >~ 1 out of 2 hunks FAILED -- saving rejects to file `?one.txt.rej'?
> Applied patch %{P}a.diff (forced; needs refresh)
$ mv one.txt one.x
diff --git a/test/create-delete.test b/test/create-delete.test
index 8040f62..7bbfa75 100644
--- a/test/create-delete.test
+++ b/test/create-delete.test
@@ -30,12 +30,12 @@ file creates and deletions.
$ echo create > create
$ rm -f delete
$ patch -p1 --dry-run < patches/test.diff
- > The next patch would create the file create,
+ >~ The next patch would create the file `?create'?,
> which already exists! Assume -R? [n]
> Apply anyway? [n]
> Skipping patch.
- > 1 out of 1 hunk ignored -- saving rejects to file create.rej
- > The next patch would delete the file delete,
+ >~ 1 out of 1 hunk ignored -- saving rejects to (file )?create.rej
+ >~ The next patch would delete the file `?delete'?,
> which does not exist! Assume -R? [n]
> Apply anyway? [n]
> Skipping patch.
diff --git a/test/example1.test b/test/example1.test
index 3ab2d64..6212f89 100644
--- a/test/example1.test
+++ b/test/example1.test
@@ -92,16 +92,16 @@ Or ``quilt edit Oberon.txt''
$ mv Oberon.new Oberon.txt
$ quilt push
> Applying patch %{P}flower.diff
- > patching file Oberon.txt
+ >~ patching file `?Oberon.txt'?
> Hunk #1 FAILED at 2.
- > 1 out of 1 hunk FAILED -- rejects in file Oberon.txt
+ >~ 1 out of 1 hunk FAILED -- rejects in file `?Oberon.txt'?
> Patch %{P}flower.diff does not apply (enforce with -f)
$ quilt push -f
> Applying patch %{P}flower.diff
- > patching file Oberon.txt
+ >~ patching file `?Oberon.txt'?
> Hunk #1 FAILED at 2.
- > 1 out of 1 hunk FAILED -- saving rejects to file Oberon.txt.rej
+ >~ 1 out of 1 hunk FAILED -- saving rejects to file `?Oberon.txt.rej'?
> Applied patch %{P}flower.diff (forced; needs refresh)
$ cat >> Oberon.txt
diff --git a/test/import.test b/test/import.test
index 3f7ebfc..4f10ca1 100644
--- a/test/import.test
+++ b/test/import.test
@@ -31,7 +31,7 @@
$ quilt push
> Applying patch patches/patch1.diff
- > patching file f
+ >~ patching file `?f'?
>
> Now at patch patches/patch1.diff
diff --git a/test/new.test b/test/new.test
index ede6eed..31211dc 100644
--- a/test/new.test
+++ b/test/new.test
@@ -18,18 +18,18 @@
$ quilt push
> Applying patch %{P}p.diff
- > patching file f
+ >~ patching file `?f'?
> Hunk #1 FAILED at 1.
- > 1 out of 1 hunk FAILED -- rejects in file f
- > patching file g
+ >~ 1 out of 1 hunk FAILED -- rejects in file `?f'?
+ >~ patching file `?g'?
> Patch %{P}p.diff does not apply (enforce with -f)
$ quilt push -f
> Applying patch %{P}p.diff
- > patching file f
+ >~ patching file `?f'?
> Hunk #1 FAILED at 1.
- > 1 out of 1 hunk FAILED -- saving rejects to file f.rej
- > patching file g
+ >~ 1 out of 1 hunk FAILED -- saving rejects to file `?f.rej'?
+ >~ patching file `?g'?
> Applied patch %{P}p.diff (forced; needs refresh)
$ echo new > f
diff --git a/test/one.test b/test/one.test
index 70764cb..7e9c44e 100644
--- a/test/one.test
+++ b/test/one.test
@@ -95,7 +95,7 @@ of the installed quilt with `make check'.
$ quilt push
> Applying patch %{P}patch2.diff
- > patching file dir/file3
+ >~ patching file `?dir/file3'?
>
> Now at patch %{P}patch2.diff
diff --git a/test/two.test b/test/two.test
index bb7a0b7..b0fe485 100644
--- a/test/two.test
+++ b/test/two.test
@@ -96,7 +96,7 @@
$ quilt push
> Applying patch %{_P}patch2.diff
- > patching file d/dir/file3
+ >~ patching file `?d/dir/file3'?
>
> Now at patch %{_P}patch2.diff