Skip to content

Commit

Permalink
explicitly test iomux_move()
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Guzzo committed Mar 11, 2015
1 parent 8ebd45e commit c4cec02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/iomux_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,10 @@ main(int argc, char **argv)


iomux_t *mux2 = iomux_create(0, 0);
iomux_move(mux, mux2);

ut_testing("iomux_move(mux, mux2) == 3");
int moved_connections = iomux_move(mux, mux2);
ut_validate_int(moved_connections, 3);

ut_testing("iomux_write(mux2, client, %s, %d)", TEST_STRING, strlen(TEST_STRING));
ut_validate_int(iomux_write(mux2, client, TEST_STRING, strlen(TEST_STRING), IOMUX_OUTPUT_MODE_NONE), strlen(TEST_STRING));
Expand Down

0 comments on commit c4cec02

Please sign in to comment.