|
Unit test sample output [==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from Array
[ RUN ] Array.EmptyArrayHostCopy
[ OK ] Array.EmptyArrayHostCopy (216 ms)
[----------] 1 test from Array (216 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (216 ms total)
[ PASSED ] 1 test.
Failure [==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from Array
[ RUN ] Array.EmptyArrayHostCopy
../test/array.cpp:623: Failure
Death test: { af::array empty; std::vector<float> hdata(100); empty.host(hdata.data()); exit(0); }
Result: died but not with expected exit code:
Terminated by signal 11 (core dumped)
Actual msg:
[ DEATH ]
[ FAILED ] Array.EmptyArrayHostCopy (2525 ms)
[----------] 1 test from Array (2525 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (2525 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] Array.EmptyArrayHostCopy
|
Sorry, something went wrong.
Description
Fixes: #3058
Changes to Users
Calls to copy empty array to host pointer won't seg-fault on OpenCL backend anymore.
Checklist