I'm building and testing cross-compilers from gcc-3.3 and gcc-ss-3_3-20030714 using http://kegel.com/crosstool. The libstdc++ test fails with FAIL: 27_io/filebuf_members.cc execution test rsh output is filebuf_members.exe.7466: .../gcc-ss-3_3-20030714/libstdc++-v3/testsuite/27_io/filebuf_members.cc:62: void test_01(): Assertion `fb_01.is_open()' failed. XYZ134ZYX Aborted
The regression tests filebuf_members filebuf_virtuals ifstream_members istream_extractor_other istream_seeks istream_unformatted ostream_inserter_other all fail because they assume the input files *.txt, *.tst are available on the target. (They also seem to create output files in / on the target, but that might just be a strangeness in my setup.) The right fix would be to use dejagnu's remote file operations to copy those files to the target when is_remote is true.
> The right fix would be to use dejagnu's remote file operations > to copy those files to the target when is_remote is true. Well, I think the framework tries to copy these files always. See libstdc++-v3/testsuite/lib/libstdc++.exp proc v3-init { args } { ... # Copy any required data files. v3-copy-files [glob -nocomplain "$srcdir/data/*.tst"] $outdir v3-copy-files [glob -nocomplain "$srcdir/data/*.txt"] $outdir ... } Where # Called by v3-init below. "Static" to this file. proc v3-copy-files {srcfiles dstdir} { foreach f $srcfiles { if { [catch { set symlink [file readlink $f] } x] } then { file copy -force $f $dstdir } else { if { [regexp "^/" "$symlink"] } then { file copy -force $symlink $dstdir } else { set dirname [file dirname $f] file copy -force $dirname/$symlink $dstdir } } } } If there's a better way to do it, I'm interested in seeing the patch. best, benjamin
I'd like to close this: I think that 15047 fixes it. Please confirm. -benjamin
Fixed in 3.4 and mainline.