]> gcc.gnu.org Git - gcc.git/commit
testsuite: /dev/null is not accessible on Windows
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Thu, 29 Sep 2022 17:38:10 +0000 (19:38 +0200)
committerJonathan Yong <10walls@gmail.com>
Wed, 5 Oct 2022 09:44:11 +0000 (09:44 +0000)
commit5fe2e4f87e512407c5c560dfec2fe48ba099c807
tree31d24f12124c7202b289a118fe5dacb0a057c2c2
parentb77bcdf445685f28dae9e42b69e006801d653001
testsuite: /dev/null is not accessible on Windows

When running the DejaGNU testsuite on a toolchain built for native
Windows, the path /dev/null can't be used to open a stream to void.
On native Windows, the resource is instead named "nul".

The error would look like this:
c:/arm-11.3.rel1/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find @/dev/null: No such file or directory

Patch has been verified on Windows and Linux.

gcc/testsuite:

* gcc.misc-tests/outputs.exp: Use "@nul" for Windows,
"@/dev/null" for other environments.

Co-Authored-By: Yvan ROUX <yvan.roux@foss.st.com>
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Signed-off-by: Jonathan Yong <10walls@gmail.com>
gcc/testsuite/gcc.misc-tests/outputs.exp
This page took 0.059301 seconds and 6 git commands to generate.