-
Notifications
You must be signed in to change notification settings - Fork 349
Tools: Test: Audio: Valgrind run related fixes #7719
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -409,6 +409,9 @@ | |
| test.thdnf_max = []; % Set per component | ||
| test.dr_db_min = 80; % Min. DR | ||
| test.fr_rp_max_db = 0.5; % Allow 0.5 dB frequency response ripple | ||
|
|
||
| % No need to collect trace | ||
| test.trace = ''; | ||
|
||
| end | ||
|
|
||
| function test = test_run_process(test) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,7 +55,7 @@ | |
| test.nch_in = test.nch; | ||
| end | ||
|
|
||
| fprintf(fh, '#!/bin/sh\n', test.comp); | ||
| fprintf(fh, '#!/bin/sh\n'); | ||
| fprintf(fh, 'COMP=\"%s\"\n', test.comp); | ||
| fprintf(fh, 'DIRECTION=playback\n'); | ||
| fprintf(fh, 'BITS_IN=%d\n', test.bits_in); | ||
|
|
@@ -92,14 +92,16 @@ | |
| fprintf(fh, 'XTRUN=\n'); | ||
| end | ||
|
|
||
| % Override defaults in comp_run.sh | ||
| fprintf(fh, 'VALGRIND=false\n'); | ||
| fclose(fh); | ||
|
|
||
| arg = sprintf('-t %s', fn_config); | ||
| rcmd = sprintf('%s %s', ex, arg); | ||
| fprintf('Running ''%s''...\n', rcmd); | ||
| system(rcmd); | ||
| ret = system(rcmd); | ||
| if ret | ||
| error('''%s'' returned status %d\n', rcmd, ret); | ||
| end | ||
|
|
||
|
||
| delete(fn_config); | ||
|
|
||
| end | ||
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.
Minor nit: the "Fixes commit-id" tag not quite following Linux style.
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.
There are git scripts that scan branches for that specific
Fixes:syntax.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.
The commit message is now fixed. You may want to re-review because of 2nd commit added to fix the syntax error found by Sriram. And strange that it didn't error.