mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
fix test-harness for 32-bit platforms
This commit is contained in:
parent
71765bb26f
commit
d4494aef9a
@ -8,8 +8,8 @@
|
|||||||
There is NO WARRANTY for this software. See license.txt for
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
details. */
|
details. */
|
||||||
|
|
||||||
#ifndef ARCH_H
|
#ifndef TEST_HARNESS_H
|
||||||
#define ARCH_H
|
#define TEST_HARNESS_H
|
||||||
|
|
||||||
class Test {
|
class Test {
|
||||||
private:
|
private:
|
||||||
@ -19,22 +19,24 @@ private:
|
|||||||
|
|
||||||
friend int main(int argc, char** argv);
|
friend int main(int argc, char** argv);
|
||||||
|
|
||||||
void print(uintptr_t value) {
|
|
||||||
|
void print(uint64_t value) {
|
||||||
fprintf(stderr, "%p", reinterpret_cast<void*>(value));
|
fprintf(stderr, "%p", reinterpret_cast<void*>(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void print(uint32_t value) {
|
||||||
|
fprintf(stderr, "%p", reinterpret_cast<void*>(value));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void print(uint8_t value) {
|
||||||
|
print(static_cast<uint32_t>(value));
|
||||||
|
}
|
||||||
|
|
||||||
void print(bool value) {
|
void print(bool value) {
|
||||||
fprintf(stderr, "%s", value ? "true" : "false");
|
fprintf(stderr, "%s", value ? "true" : "false");
|
||||||
}
|
}
|
||||||
|
|
||||||
void print(uint8_t value) {
|
|
||||||
fprintf(stderr, "0x%02x", value);
|
|
||||||
}
|
|
||||||
|
|
||||||
void print(uint64_t value) {
|
|
||||||
fprintf(stderr, "0x%" LLD, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
int failures;
|
int failures;
|
||||||
int runs;
|
int runs;
|
||||||
|
|
||||||
@ -82,4 +84,4 @@ public:
|
|||||||
static bool runAll();
|
static bool runAll();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // TEST_HARNESS_H
|
||||||
|
Loading…
Reference in New Issue
Block a user