summaryrefslogtreecommitdiffstats
path: root/test/failpop.test
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-11-04 15:53:15 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-11-04 15:53:15 +0000
commit477c8a0b21b5f546904574e630139736cdaf2951 (patch)
tree1fc7a384a3ae98a0ed854cad0e6dd538962caf3b /test/failpop.test
parent11006bdc9ed6c400cca019886f395febc9110b06 (diff)
downloadquilt-477c8a0b21b5f546904574e630139736cdaf2951.tar.gz
- Add failpop.test that checks if modified patches are recognized.
- Fix the check for modified patches: That broke with the .pc file removal.
Diffstat (limited to 'test/failpop.test')
-rw-r--r--test/failpop.test27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/failpop.test b/test/failpop.test
new file mode 100644
index 0000000..9b4cc3d
--- /dev/null
+++ b/test/failpop.test
@@ -0,0 +1,27 @@
+ $ mkdir d
+ $ cd d
+
+ $ cat > test.txt
+ < This is test.txt.
+
+ $ quilt new test.diff
+ > Patch test is now on top
+
+ $ quilt add test.txt
+ > File test.txt added to patch test
+
+ $ cat >> test.txt
+ < Line two.
+
+ $ quilt refresh
+ > Refreshed patch test
+
+ $ sleep 2
+
+ $ sed -e "s/ /_/g" patches/test.diff > patches/test.new
+ $ mv patches/test.new patches/test.diff
+ $ quilt pop
+ > Patch test does not remove cleanly (enforce with -f).
+
+ $ cd ..
+ $ rm -rf d