mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
(back) ported win32 32bit compatibility along with lots of fixes
This commit is contained in:
5
tests/cpptest.cpp
Normal file → Executable file
5
tests/cpptest.cpp
Normal file → Executable file
@@ -60,8 +60,9 @@ void test0() {
|
||||
|
||||
DECRYPTED = _openrd("testcppdecrypted");
|
||||
char *got = (char *)ucmalloc(10);
|
||||
size_t h;
|
||||
h = fread(got, 1, 6, DECRYPTED);
|
||||
if(fread(got, 1, 6, DECRYPTED) < 6) {
|
||||
throw pcp::exception("read error, could not read decrypted content");
|
||||
}
|
||||
if(strncmp(got, "HALLO", 5) != 0) {
|
||||
throw pcp::exception();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user