syntax bug
Michael Andrews <[email protected]>
| Newsgroups | gmane.comp.sysutils.dejagnu.bugs |
|---|---|
| Organization | SERG |
| Message-ID | <[email protected]> |
_______________________________________________ Bug-dejagnu mailing list [email protected] http://mail.gnu.org/mailman/listinfo/bug-dejagnu
dejagnu-1.4.1.syntax.patch
(text/x-diff, 2.6 KB)
Only in dejagnu-1.4.1-r1/: Makefile
Only in dejagnu-1.4.1-r1/: config.cache
Only in dejagnu-1.4.1-r1/: config.log
Only in dejagnu-1.4.1-r1/: config.status
diff -u5r dejagnu-1.4.1/dejagnu.h dejagnu-1.4.1-r1/dejagnu.h
--- dejagnu-1.4.1/dejagnu.h 2001-05-04 01:42:30.000000000 -0400
+++ dejagnu-1.4.1-r1/dejagnu.h 2003-05-29 13:08:38.000000000 -0400
@@ -65,11 +65,14 @@
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
-#include <strstream>
+//#include <strstream>
+#include <sstream>
+
+using namespace std;
char *outstate[] = {
"FAILED: ",
"PASSED: ",
"UNTESTED: ",
@@ -110,11 +113,12 @@
#endif
char *testout (int x) {
const int len = 128;
static char buf[len];
- static ostrstream oss(buf, len, ios::out);
+ //static ostrstream oss(buf, len, ios::out);
+ ostringstream oss(ios::out);
oss.seekp(ios::beg);
oss << outstate[x] << ends;
return buf;
}
Only in dejagnu-1.4.1-r1/doc: Makefile
Only in dejagnu-1.4.1/doc: overview.tex
Only in dejagnu-1.4.1-r1/example: Makefile
Only in dejagnu-1.4.1-r1/example/calc: .deps
Only in dejagnu-1.4.1-r1/example/calc: Makefile
Only in dejagnu-1.4.1-r1/example/calc: calc
Only in dejagnu-1.4.1-r1/example/calc: calc.h
Only in dejagnu-1.4.1-r1/example/calc: calc.o
Only in dejagnu-1.4.1-r1/example/calc: config.log
Only in dejagnu-1.4.1-r1/example/calc: config.status
Only in dejagnu-1.4.1-r1/example/calc: stamp-h
Only in dejagnu-1.4.1-r1/testsuite: Makefile
Only in dejagnu-1.4.1-r1/testsuite/libdejagnu: .deps
Only in dejagnu-1.4.1-r1/testsuite/libdejagnu: Makefile
Only in dejagnu-1.4.1-r1/testsuite/libdejagnu: unit
diff -u5r dejagnu-1.4.1/testsuite/libdejagnu/unit.cc dejagnu-1.4.1-r1/testsuite/libdejagnu/unit.cc
--- dejagnu-1.4.1/testsuite/libdejagnu/unit.cc 2001-05-04 01:25:59.000000000 -0400
+++ dejagnu-1.4.1-r1/testsuite/libdejagnu/unit.cc 2003-05-29 13:07:49.000000000 -0400
@@ -40,19 +40,20 @@
int
main (int argc, char *argv[]) {
regex_t regex_pat;
-// char **os2 = outstate;
+ //char **os2 = outstate;
+ char **outstate;
outstate = os1;
// Replace the output buffer for cout, so we can examine it to
// see what was displayed. Otherwise, there is no way we can test
// the logging functions completely.
streambuf *sb = cout.rdbuf();
char bbuuff[5120];
- sb->setbuf(bbuuff, 5120);
+ sb->pubsetbuf(bbuuff, 5120);
testClass1.tname = "testType1";
testClass1.tnum = 1;
testClass2.tname = "testType2";
testClass2.tnum = 2;
Only in dejagnu-1.4.1-r1/testsuite/libdejagnu: unit.o
Only in dejagnu-1.4.1-r1/testsuite: site.exp
Only in dejagnu-1.4.1-r1/testsuite: t