comparison ui/tests/commontest.cpp @ 184:1f44aae4528e

Add C linkage for strhelp. Check for data in commontest.
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 25 Mar 2014 18:03:00 +0000
parents 6c3a089d3265
children d773e540dec3
comparison
equal deleted inserted replaced
183:4def8b263dd3 184:1f44aae4528e
20 20
21 ret = str_base64_decode(&data, &data_size, (char *)baB64.constData(), baB64.size()); 21 ret = str_base64_decode(&data, &data_size, (char *)baB64.constData(), baB64.size());
22 22
23 QVERIFY(ret == 0); 23 QVERIFY(ret == 0);
24 QVERIFY(data_size == 1000); 24 QVERIFY(data_size == 1000);
25 QVERIFY(data);
25 26
26 for (size_t i = 0; i < data_size; i++) { 27 for (size_t i = 0; i < data_size; i++) {
27 QVERIFY(garbage[i] == data[i]); 28 QVERIFY(garbage[i] == data[i]);
28 } 29 }
29 free (data); 30 free (data);

http://wald.intevation.org/projects/trustbridge/