icnhoukdsiih / testlib

Automatically exported from code.google.com/p/testlib
0 stars 0 forks source link

No Fail when inf.readEof forgotten in g++4.8 #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
RiaD@riad-ultra-win ~
$ cat test.cpp
#include "testlib.h"

int main() {
        registerValidation();
        inf.readInt();
        inf.readEoln();
        //inf.readEof();
        return 0;
}

RiaD@riad-ultra-win ~
$ g++ test.cpp

RiaD@riad-ultra-win ~
$ ./a < input

input тот же, "4\r\n"

What is the expected output? What do you see instead?

FAIL Validator must end with readEof call. (as in VS)

What version of the product are you using? On what operating system?

todays trunk. Win7, g++4.8.1

Original issue reported on code.google.com by riad...@gmail.com on 14 Jul 2013 at 10:31

GoogleCodeExporter commented 8 years ago
Can't reproduce.

C:\Programs\MinWG-4.8.1\bin>g++ --version
g++.EXE (rev2, Built by MinGW-builds project) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

g++ -DLOCAL_RUN -Wall -Wextra -Wconversion -O2 -Wl,--stack=256000000 -static -o 
v v.cpp

=
#include "testlib.h"

int main() {
        registerValidation();
        inf.readInt();
        inf.readEoln();
        //inf.readEof();
        return 0;
}
=

C:\Programs\MinWG-4.8.1\bin>v.exe < input.txt
FAIL Validator must end with readEof call.

Original comment by mirzayan...@gmail.com on 25 Aug 2013 at 7:04

GoogleCodeExporter commented 8 years ago

Original comment by mirzayan...@gmail.com on 25 Sep 2013 at 2:19