Skip to content

Commit

Permalink
Fixed the sloppy typing/alignment used by the basic camelface test.
Browse files Browse the repository at this point in the history
The lack of correct types, and alignments, caused problems on
platforms with newer versions of gcc.
  • Loading branch information
ladar committed Sep 19, 2018
1 parent 5e55cef commit 4e5abc2
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 75 deletions.
20 changes: 18 additions & 2 deletions check/magma/servers/camel/camel_check.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,11 +23,27 @@ END_TEST
START_TEST (check_camel_basic_s) { START_TEST (check_camel_basic_s) {


log_disable(); log_disable();
int64_t result = 0;
bool_t outcome = true; bool_t outcome = true;
stringer_t *errmsg = MANAGEDBUF(1024); stringer_t *errmsg = MANAGEDBUF(1024);


if (status() && !check_camel_basic_sthread(false, errmsg)) outcome = false; // Reset the alerts and make the insecure attempt.
else if (status() && outcome && !check_camel_basic_sthread(true, errmsg)) outcome = false; if (status() && (result = sql_write(PLACER("UPDATE `Alerts` SET `acknowledged` = NULL WHERE `usernum` < 10;", 63))) < 0) {
st_sprint(errmsg, "Unable to configure the alerts for the basic camelface test. { result = %li }", result);
outcome = false;
}
else if (status() && !check_camel_basic_sthread(false, errmsg)) {
outcome = false;
}

// Reset the alerts again, and make the secure attempt.
else if (status() && (result = sql_write(PLACER("UPDATE `Alerts` SET `acknowledged` = NULL WHERE `usernum` < 10;", 63))) < 0) {
st_sprint(errmsg, "Unable to configure the alerts for the basic camelface test. { result = %li }", result);
outcome = false;
}
else if (status() && outcome && !check_camel_basic_sthread(true, errmsg)) {
outcome = false;
}


log_test("HTTP / NETWORK / CAMEL / BASIC / SINGLE THREADED:", errmsg); log_test("HTTP / NETWORK / CAMEL / BASIC / SINGLE THREADED:", errmsg);
ck_assert_msg(outcome, st_char_get(errmsg)); ck_assert_msg(outcome, st_char_get(errmsg));
Expand Down
Loading

0 comments on commit 4e5abc2

Please sign in to comment.