Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,7 @@ _mieq_test_generate_events(uint32_t start, uint32_t count)
}
}

#define mieq_test_generate_events(c) { _mieq_test_generate_events(next, c); next += c; }
#define mieq_test_generate_events(c) { _mieq_test_generate_events(next, (c)); next += (c); }

static void
mieq_test(void)
Expand Down
8 changes: 4 additions & 4 deletions test/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ dix_update_desktop_dimensions(void)

#define assert_dimensions(_x, _y, _w, _h) \
update_desktop_dimensions(); \
assert(screenInfo.x == _x); \
assert(screenInfo.y == _y); \
assert(screenInfo.width == _w); \
assert(screenInfo.height == _h);
assert(screenInfo.x == (_x)); \
assert(screenInfo.y == (_y)); \
assert(screenInfo.width == (_w)); \
assert(screenInfo.height == (_h));

/* single screen */
screenInfo.numScreens = 1;
Expand Down
12 changes: 6 additions & 6 deletions test/signal-logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ static void logging_format(void)
free(fname);

#define read_log_msg(msg) do { \
msg = fgets(read_buf, sizeof(read_buf), f); \
assert(msg != NULL); \
msg = strchr(read_buf, ']'); \
assert(msg != NULL); \
assert(strlen(msg) > 2); \
msg = msg + 2; /* advance past [time.stamp] */ \
(msg) = fgets(read_buf, sizeof(read_buf), f); \
assert((msg) != NULL); \
(msg) = strchr(read_buf, ']'); \
assert((msg) != NULL); \
assert(strlen((msg)) > 2); \
(msg) = (msg) + 2; /* advance past [time.stamp] */ \
} while (0)

/* boring test message */
Expand Down
Loading