diff --git a/test/openscap_test.rb b/test/openscap_test.rb
index <HASH>..<HASH> 100644
--- a/test/openscap_test.rb
+++ b/test/openscap_test.rb
@@ -19,4 +19,12 @@ class TestOscapVersion < Test::Unit::TestCase
     OpenSCAP.oscap_cleanup
     assert version.include?(".")
   end
+
+  def test_double_read_error
+    assert ! OpenSCAP.error?
+    msg = OpenSCAP.get_full_error
+    assert msg.nil?
+    msg = OpenSCAP.get_full_error
+    assert msg.nil?
+  end
 end
test: Make sure the full error can be always read