From 25424aaa368622580a206ddd8f3ba2e5ecddf75d Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Thu, 26 Mar 2009 21:57:03 -0300
Subject: [PATCH 18/32] tests/auto: Don't keep running when libfiu is not available

When libfiu is not available, re-raise the exception after printing the
message. While at it, fix a small (related) documentation mismatch: FI=1
should be used to build with fault injection support, not FIU=1.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 tests/auto/t_corruption.py |    5 +++--
 tests/auto/t_fi.py         |    5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/auto/t_corruption.py b/tests/auto/t_corruption.py
index c91a132..35a1998 100644
--- a/tests/auto/t_corruption.py
+++ b/tests/auto/t_corruption.py
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
 # Corruption tests using libfiu. libjio must have been built with libfiu
-# enabled (using something like make FIU=1) for them to work.
+# enabled (using something like make FI=1) for them to work.
 
 from tf import *
 
@@ -11,8 +11,9 @@ except ImportError:
 	print
 	print "Error: unable to load fiu module. Corruption tests need"
 	print "libfiu support. Please install libfiu and recompile libjio"
-	print "with FIU=1. You can still run the other tests."
+	print "with FI=1. You can still run the other tests."
 	print
+	raise
 
 
 def test_c01():
diff --git a/tests/auto/t_fi.py b/tests/auto/t_fi.py
index e07e6f2..7490a08 100644
--- a/tests/auto/t_fi.py
+++ b/tests/auto/t_fi.py
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
 # General tests using libfiu. libjio must have been built with libfiu enabled
-# (using something like make FIU=1) for them to work.
+# (using something like make FI=1) for them to work.
 
 import struct
 from tf import *
@@ -13,8 +13,9 @@ except ImportError:
 	print
 	print "Error: unable to load fiu module. Fault injection tests need"
 	print "libfiu support. Please install libfiu and recompile libjio"
-	print "with FIU=1. You can still run the other tests."
+	print "with FI=1. You can still run the other tests."
 	print
+	raise
 
 
 def test_f01():
-- 
1.6.2.rc0.226.gf08f


