X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Fgenerator.ml;h=4d74cb004c713f211bb17b28f686345067a52575;hp=c6a12627199ea342ccfc56a88642e27993c69671;hb=f9d08600c52dc0730e7dad8d9259b59e32aeece2;hpb=11eeb8885c7a8ffb59e12cd5fb2ae0fc324df383 diff --git a/src/generator.ml b/src/generator.ml index c6a1262..4d74cb0 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -309,6 +309,9 @@ and test_prereq = (* As for 'If' but the test runs _unless_ the code returns true. *) | Unless of string + (* Run the test only if 'string' is available in the daemon. *) + | IfAvailable of string + (* Some initial scenarios for testing. *) and test_init = (* Do nothing, block devices could contain random stuff including @@ -1543,7 +1546,9 @@ See also: C, C, C"); ("write_file", (RErr, [Pathname "path"; String "content"; Int "size"]), 44, [ProtocolLimitWarning; DeprecatedBy "write"], - [], + (* Regression test for RHBZ#597135. *) + [InitBasicFS, Always, TestLastFail + [["write_file"; "/new"; "abc"; "10000"]]], "create a file", "\ This call creates a file called C. The contents of the @@ -2222,7 +2227,7 @@ C to C