Closed okt-denispr closed 1 year ago
@okt-denispr, please write an example of how to reproduce this bug.
I used this script to reproduce the problem.
It's just a wrapper over te_trc_update_wrapper
.
cmd:
./trc_update --test-name=<test_name> --rules-save=rules.xml --log=<path_to_tmp_raw_log>
To fix it, you just need to take out TESTER_OPT_FAIL_ON_LEAK
from the following list of values:
enum {
TESTER_OPT_VERSION = 1,
TESTER_OPT_QUIET,
..........
/*
* Values from here to TESTER_OPT_FAKE must correspond
* to test_path_type, do not change order or add/remove
* items here without updating test_path_type.
*/
TESTER_OPT_RUN,
TESTER_OPT_RUN_FORCE,
TESTER_OPT_RUN_FROM,
TESTER_OPT_RUN_TO,
TESTER_OPT_RUN_EXCLUDE,
TESTER_OPT_VALGRIND,
TESTER_OPT_GDB,
TESTER_OPT_FAIL_ON_LEAK, (! it breaks)
TESTER_OPT_MIX,
TESTER_OPT_MIX_VALUES,
TESTER_OPT_MIX_ARGS,
TESTER_OPT_MIX_TESTS,
TESTER_OPT_MIX_ITERS,
TESTER_OPT_MIX_SESSIONS,
TESTER_OPT_NO_MIX,
TESTER_OPT_FAKE,
/*
* End of list corresponding to test_path_type.
*/
....
TESTER_OPT_CMD_MONITOR,
};
Yes, I have already fixed this error, I just want to check that everything is working correctly now.
In my case, the problem is gone after changing the order. Unfortunately, I do not know an easy way to test this without using one of TS.
Fixed in release v1.16.0 (705d9ae3caf9dc82155e74b7af12b0bd48f106dc)
Hi, I found that
te_trc_update_wrapper
tool is broken. When I'm trying to use it I see:This problem is caused by the following commit:
TESTER_OPT_FAIL_ON_LEAK
breaks the order for values that must correspond totest_path_typeof
inprocess_cmd_line_opts
function.Could you please fix it?