-
Notifications
You must be signed in to change notification settings - Fork 67
test: return invalid argument when rawData size is passed as 0 to tracer #351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Related-To: VLCLJ-2678 Signed-off-by: Shreyas Kunder <shreyas.kunder@intel.com>
Related-To: VLCLJ-2678 Signed-off-by: Shreyas Kunder <shreyas.kunder@intel.com>
Related-To: VLCLJ-2678 Signed-off-by: Shreyas Kunder <shreyas.kunder@intel.com>
Related-To: VLCLJ-2678 Signed-off-by: Shreyas Kunder <shreyas.kunder@intel.com>
| LOG_DEBUG << "synchronize with completion of workload"; | ||
| lzt::synchronize(command_queue, std::numeric_limits<uint64_t>::max()); | ||
|
|
||
| size_t raw_data_size = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please confirm, but I suspect this test does not need to run any workload. Since it is just an API param check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you are right. Removed running the workload.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this test does not make sense any more since you cannot know how much size is available.
Instead seems there should be a test that sets a small buffer and confirms can read multiple times, concatenate data and call calculate and data is valid. This will be the most used case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have modified this test to read the data completely using the small buffer. Let me know if this test is okay.
Cannot use the new decode and calculate here since it is still driver experimental. Will add that test scenario in embargo.
Related-To: VLCLJ-2678 Signed-off-by: Shreyas Kunder <shreyas.kunder@intel.com>
Related-To: VLCLJ-2678 Signed-off-by: Shreyas Kunder <shreyas.kunder@intel.com>
matcabral
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look good. Please paste output of passing tests.
Related-To: VLCLJ-2678