diff options
author | Richard Jones <rjones@trick.home.annexia.org> | 2009-07-29 18:44:46 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-07-29 18:44:46 +0100 |
commit | bf2b08560f649c22152e4138531ad0b46b4ad1b3 (patch) | |
tree | 3002cb0225a56b15ee905bbbeb52603f3e033f76 /images/known-4 | |
parent | 9847e0c07d5907887e26ec60192fa12aa46277ee (diff) | |
download | libguestfs-bf2b08560f649c22152e4138531ad0b46b4ad1b3.tar.gz libguestfs-bf2b08560f649c22152e4138531ad0b46b4ad1b3.tar.xz libguestfs-bf2b08560f649c22152e4138531ad0b46b4ad1b3.zip |
tests: Fix read_file test.
The test ignored the fact that this function returns a (char *, size_t)
pair, and just treated the char * as a string. This of course would
fail if the string didn't happen to be nul-terminated.
The tests are updated to add a new TestOutputBuffer type which should
be used with functions that return RBufferOut.
Diffstat (limited to 'images/known-4')
-rw-r--r-- | images/known-4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/images/known-4 b/images/known-4 new file mode 100644 index 00000000..f5bc74f6 --- /dev/null +++ b/images/known-4 @@ -0,0 +1,3 @@ +abc +def +ghi
\ No newline at end of file |