aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2024-10-15 10:59:48 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2024-10-15 10:59:48 -0400
commitf8dcb559e615dbb4557a23363f9532a3544a7241 (patch)
tree356e04543399e74f31469530f31c0c978828495d /libcpp
parent80d7032067a3a5b76aecd657d9b35b0a8f5a941d (diff)
downloadgcc-f8dcb559e615dbb4557a23363f9532a3544a7241.zip
gcc-f8dcb559e615dbb4557a23363f9532a3544a7241.tar.gz
gcc-f8dcb559e615dbb4557a23363f9532a3544a7241.tar.bz2
testsuite, jit: fix test-error-pr63969-missing-driver.c
jit.dg/test-error-pr63969-missing-driver.c tries to break PATH and verify that an error is generated when using an external driver. However it does this by unsetting PATH, and so the test could accidentally find the driver if the system supplies a default and the driver happens to be installed in that path (reported as rhbz#2318021). Fix the test by instead setting PATH to a bogus value. gcc/testsuite/ChangeLog: * jit.dg/test-error-pr63969-missing-driver.c (create_code): When breaking PATH, use setenv with a bogus value, rather than unsetenv, in case the system uses a default path that contains the driver binary. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions