diff options
author | Björn Gustavsson <[email protected]> | 2011-12-07 11:15:58 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-12-09 11:46:28 +0100 |
commit | 7716fd8d03aecd1f013478f2a1e61f70a2fb383f (patch) | |
tree | 6201bd9b3a53f4f75c6e23f3ad272af4d9e5db42 | |
parent | da62bc795097e99f116c17f173ff41addc800396 (diff) | |
download | otp-7716fd8d03aecd1f013478f2a1e61f70a2fb383f.tar.gz otp-7716fd8d03aecd1f013478f2a1e61f70a2fb383f.tar.bz2 otp-7716fd8d03aecd1f013478f2a1e61f70a2fb383f.zip |
erl_drv_thread_SUITE_data/testcase_driver.c: Conform to updated driver API
-rw-r--r-- | erts/emulator/test/erl_drv_thread_SUITE_data/testcase_driver.c | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/erts/emulator/test/erl_drv_thread_SUITE_data/testcase_driver.c b/erts/emulator/test/erl_drv_thread_SUITE_data/testcase_driver.c index 1e98844838..b4542f3e36 100644 --- a/erts/emulator/test/erl_drv_thread_SUITE_data/testcase_driver.c +++ b/erts/emulator/test/erl_drv_thread_SUITE_data/testcase_driver.c @@ -50,13 +50,33 @@ typedef struct { ErlDrvData testcase_drv_start(ErlDrvPort port, char *command); void testcase_drv_stop(ErlDrvData drv_data); -void testcase_drv_run(ErlDrvData drv_data, char *buf, int len); +void testcase_drv_run(ErlDrvData drv_data, char *buf, ErlDrvSizeT len); static ErlDrvEntry testcase_drv_entry = { NULL, testcase_drv_start, testcase_drv_stop, - testcase_drv_run + testcase_drv_run, + NULL, + NULL, + NULL, + NULL, + NULL, /* handle */ + NULL, /* control */ + NULL, /* timeout */ + NULL, /* outputv */ + NULL, /* ready_async */ + NULL, + NULL, + NULL, + ERL_DRV_EXTENDED_MARKER, + ERL_DRV_EXTENDED_MAJOR_VERSION, + ERL_DRV_EXTENDED_MINOR_VERSION, + 0, + NULL, + NULL, + NULL, + }; @@ -92,7 +112,7 @@ testcase_drv_stop(ErlDrvData drv_data) } void -testcase_drv_run(ErlDrvData drv_data, char *buf, int len) +testcase_drv_run(ErlDrvData drv_data, char *buf, ErlDrvSizeT len) { InternalTestCaseState_t *itcs = (InternalTestCaseState_t *) drv_data; ErlDrvTermData result_atom; |