Lines 1-30
Link Here
|
1 |
--- qztest/testquagzipfile.cpp.orig 2012-09-05 15:24:35.000000000 +0000 |
|
|
2 |
+++ qztest/testquagzipfile.cpp |
3 |
@@ -8,9 +8,9 @@ void TestQuaGzipFile::read() |
4 |
{ |
5 |
QDir curDir; |
6 |
curDir.mkpath("tmp"); |
7 |
- voidp gzFile = gzopen("tmp/test.gz", "wb"); |
8 |
- gzwrite(gzFile, "test", 4); |
9 |
- gzclose(gzFile); |
10 |
+ gzFile gzf = gzopen("tmp/test.gz", "wb"); |
11 |
+ gzwrite(gzf, "test", 4); |
12 |
+ gzclose(gzf); |
13 |
QuaGzipFile testFile("tmp/test.gz"); |
14 |
QVERIFY(testFile.open(QIODevice::ReadOnly)); |
15 |
char buf[5]; |
16 |
@@ -32,11 +32,11 @@ void TestQuaGzipFile::write() |
17 |
QCOMPARE(testFile.write("test", 4), static_cast<qint64>(4)); |
18 |
testFile.close(); |
19 |
QVERIFY(!testFile.isOpen()); |
20 |
- voidp gzFile = gzopen("tmp/test.gz", "rb"); |
21 |
+ gzFile gzf = gzopen("tmp/test.gz", "rb"); |
22 |
char buf[5]; |
23 |
buf[4] = '\0'; |
24 |
- QCOMPARE(gzread(gzFile, buf, 5), 4); |
25 |
- gzclose(gzFile); |
26 |
+ QCOMPARE(gzread(gzf, buf, 5), 4); |
27 |
+ gzclose(gzf); |
28 |
QCOMPARE(static_cast<const char*>(buf), "test"); |
29 |
curDir.remove("tmp/test.gz"); |
30 |
curDir.rmdir("tmp"); |