Changeset 6802

Show
Ignore:
Timestamp:
07/09/10 17:41:04 (21 months ago)
Author:
westram
Message:
  • removed a few superfluous LFs (introduced in [6801])
Location:
branches/refactor/UNIT_TESTER
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/refactor/UNIT_TESTER/test_global.h

    r6801 r6802  
    5757 
    5858namespace arb_test { 
    59     class FlushedOutputNoNewline { 
     59    class FlushedOutputNoLF { 
    6060        inline void flushall() { fflush(stdout); fflush(stderr); } 
    6161    public: 
    62         FlushedOutputNoNewline() { flushall(); } 
    63         ~FlushedOutputNoNewline() { flushall(); } 
     62        FlushedOutputNoLF() { flushall(); } 
     63        ~FlushedOutputNoLF() { flushall(); } 
    6464    }; 
    65     struct FlushedOutput : public FlushedOutputNoNewline { 
     65    struct FlushedOutput : public FlushedOutputNoLF { 
    6666        ~FlushedOutput() { fputc('\n', stderr); } 
    6767    }; 
    68          
     68 
    6969    class GlobalTestData { 
    7070        GlobalTestData() 
     
    9898        static void assertfailmsg(const char *filename, int lineno, const char *condition) { 
    9999            FlushedOutput yes; 
    100             fprintf(stderr, "%s:%i: Assertion '%s' failed\n", filename, lineno, condition); 
     100            fprintf(stderr, "%s:%i: Assertion '%s' failed", filename, lineno, condition); 
    101101        } 
    102102    }; 
  • branches/refactor/UNIT_TESTER/test_unit.h

    r6801 r6802  
    5151 
    5252        static void printf(const char *format, ...) __attribute__((format(printf, 1, 2))) { 
    53             FlushedOutputNoNewline yes; 
     53            FlushedOutputNoLF yes; 
    5454            VPRINTFORMAT(format); 
    5555        } 
     
    113113    } 
    114114    template <typename T1, typename T2> void print_failed_equal(T1 t1, T2 t2) { 
    115         FlushedOutput yes; 
     115        FlushedOutputNoLF yes; 
    116116        fputs("is_equal(", stderr); 
    117117        print_pair(t1, t2); 
     
    199199    } 
    200200 
    201      
     201 
    202202 
    203203    inline bool files_are_equal(const char *file1, const char *file2) { 
    204         const char    *error = NULL; 
    205         FILE          *fp1   = fopen(file1, "rb"); 
    206         FlushedOutput  yes; 
     204        const char        *error = NULL; 
     205        FILE              *fp1   = fopen(file1, "rb"); 
     206        FlushedOutputNoLF  yes; 
    207207 
    208208        if (!fp1) {