@@ -275,8 +275,8 @@ $(objpfx)%.out: /dev/null $(objpfx)% # Make it 2nd arg for canned sequence.
# tests-container.
$(tests-container:%=$(objpfx)%.out): $(objpfx)%.out : $(if $(wildcard $(objpfx)%.files),$(objpfx)%.files,/dev/null) $(objpfx)%
$(test-wrapper-env) $(run-program-env) $(run-via-rtld-prefix) \
- $(common-objpfx)support/test-container env $(run-program-env) $($*-ENV) \
- $(host-test-program-cmd) $($*-ARGS) > $@; \
+ $(common-objpfx)support/test-container env $($*-ENV) \
+ $(built-program-file) $($*-ARGS) > $@; \
$(evaluate-test)
@@ -712,6 +712,12 @@ main (int argc, char **argv)
--argc;
}
+ /* We don't want to inherit these from the ld.so wrapper we were
+ invoked with, but the test can still provide a test-specific
+ value via the "env" we pretend to run. */
+ unsetenv ("GCONV_PATH");
+ unsetenv ("LOCPATH");
+
if (strcmp (argv[1], "env") == 0)
{
++argv;