Fix r202/bad_query_res_on_mapped_sub_lvl-ydb960 subtest failure when run with -unicode

Background

  • While running tests, I noticed the above subtest fail with the following diff.

    25c25,256
    < g="^a(2,1)"
    ---
    > %YDB-F-ASSERT, Assert failed in sr_unix/incr_link.c line 452 for expression (FALSE)
    .
    .
  • This happened only when the test framework random option CHSET was set to UTF-8. That is, only if the test was run with -unicode.

Issue

  • The test explicitly sets gtmroutines env var to $ydb_dist. But if the test framework had randomly set gtm_chset env var to UTF-8, it would have already set gtmroutines to $ydb_dist/utf8 which is the right thing to do as all .so files need to be accessed from that directory due to the .m object files being in different format in M vs UTF-8 mode.

Fix

  • Removed the incorrect and unnecessary step of resetting gtmroutines as well as ydb_gbldir and ydb_routines env vars.

Merge request reports

Loading