digitalmars.D.bugs - [Issue 4919] New: dmd test driver fails with EBADF
- d-bugmail puremagic.com (39/39) Sep 23 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4919
- d-bugmail puremagic.com (13/13) Sep 23 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4919
http://d.puremagic.com/issues/show_bug.cgi?id=4919 Summary: dmd test driver fails with EBADF Product: D Version: D2 Platform: x86 OS/Version: Linux Status: NEW Keywords: patch, rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: rsinfu gmail.com --- Running the dmd tests on Gentoo 2.6.32 fails with an unexpected EBADF. -------------------- dmd/test$ make (== snip ==) ... runnable/bench1.d -d (-inline -release -gc -O -unittest -fPIC) sh: 10000: Bad file descriptor Test failed. The logged output: (== snip ==) -------------------- The problem is the test driver. It issues "test_results/runnable/bench1 10000> " to the shell, in which the "10000>" part is wrong. Patch: ==================== --- test/d_do_test.d +++ test/d_do_test.d -204,7 +204,7 void execute(ref File f, string command, bool expectpass) scope(exit) if (std.file.exists(filename)) std.file.remove(filename); f.writeln(command); - auto rc = system(command ~ "> " ~ filename ~ " 2>&1"); + auto rc = system(command ~ " > " ~ filename ~ " 2>&1"); f.write(readText(filename)); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 23 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4919 Brad Roberts <braddr puremagic.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |braddr puremagic.com Resolution| |FIXED --- Odd that I don't see the same problem, but either way, that change has been checked in. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 23 2010