blob: 2c056f49c2c23894ab91b939a163474c3f49f4e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#include "shared.rsh"
// Testing unsigned types for Bug 6764163
unsigned int ui = 37;
unsigned char uc = 5;
static bool test_unsigned() {
bool failed = false;
rsDebug("ui", ui);
rsDebug("uc", uc);
_RS_ASSERT(ui == 0x7fffffff);
_RS_ASSERT(uc == 129);
if (failed) {
rsDebug("test_unsigned FAILED", -1);
}
else {
rsDebug("test_unsigned PASSED", 0);
}
return failed;
}
void unsigned_test() {
bool failed = false;
failed |= test_unsigned();
if (failed) {
rsSendToClientBlocking(RS_MSG_TEST_FAILED);
}
else {
rsSendToClientBlocking(RS_MSG_TEST_PASSED);
}
}
|