diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-06-29 09:43:54 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-06-29 09:43:54 +0100 |
commit | 72caee07a5f4f2d7e34c954dba500ffbdbc27207 (patch) | |
tree | ec64cddced372233107a2a05e29d09f9e71c3ea3 /src | |
parent | ccacf5dec5207d94bc692bfa59670bc8ee4d049f (diff) | |
download | libguestfs-72caee07a5f4f2d7e34c954dba500ffbdbc27207.tar.gz libguestfs-72caee07a5f4f2d7e34c954dba500ffbdbc27207.tar.xz libguestfs-72caee07a5f4f2d7e34c954dba500ffbdbc27207.zip |
Add large test files with standard content for the C API test.
Large test files with standard content for the C API test, and
add a regression test for previous hexdump failure on large files.
Diffstat (limited to 'src')
-rwxr-xr-x | src/generator.ml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/generator.ml b/src/generator.ml index 1342c38e..7905c367 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -2131,7 +2131,13 @@ The returned strings are transcoded to UTF-8."); ("hexdump", (RString "dump", [String "path"]), 96, [ProtocolLimitWarning], [InitBasicFS, Always, TestOutput ( [["write_file"; "/new"; "hello\nworld\n"; "12"]; - ["hexdump"; "/new"]], "00000000 68 65 6c 6c 6f 0a 77 6f 72 6c 64 0a |hello.world.|\n0000000c\n")], + ["hexdump"; "/new"]], "00000000 68 65 6c 6c 6f 0a 77 6f 72 6c 64 0a |hello.world.|\n0000000c\n"); + (* Test for RHBZ#501888c2 regression which caused large hexdump + * commands to segfault. + *) + InitBasicFS, Always, TestRun ( + [["mount_vfs"; "ro"; "squashfs"; "/dev/sdd"; "/"]; + ["hexdump"; "/100krandom"]])], "dump a file in hexadecimal", "\ This runs C<hexdump -C> on the given C<path>. The result is |