Skip to contentSkip to conversation

master - TEST: Add a regression test for the ondisk/orphan bug.

PATCH Petr Rockai 1 participant 1 message Jul 22, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=bd60232d7428a8b51c8794b30503761f4032f7a1
Commit:        bd60232d7428a8b51c8794b30503761f4032f7a1
Parent:        f897fcbd957517b484956062055599b226090f05
Author:        Petr Rockai <[email protected]>
AuthorDate:    Mon Jul 22 11:57:23 2013 +0200
Committer:     Petr Rockai <[email protected]>
CommitterDate: Mon Jul 22 11:57:23 2013 +0200

TEST: Add a regression test for the ondisk/orphan bug.

---
 test/shell/orphan-ondisk.sh |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
test/shell/orphan-ondisk.sh new file +15 -0
new file mode 100644
index 0000000..2a820d6
@@ -0,0 +1,15 @@
+#!/bin/sh
+# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+. lib/test
+
+aux prepare_vg 2
+vgreduce $vg $dev1 2>&1 | not grep -i 'parse error'