File: testFile.h

package info (click to toggle)
libdap 3.21.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,256 kB
  • sloc: cpp: 46,310; sh: 44,047; xml: 23,535; ansic: 19,973; yacc: 2,505; exp: 1,544; makefile: 581; lex: 309; fortran: 8
file content (22 lines) | stat: -rw-r--r-- 1,033 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif

#include <string>

using namespace std;

#if 0
// Never use this!
#define FILE2string(s, f, c)                                                                                           \
    do {                                                                                                               \
        FILE *(f) = fopen("testout", "w");                                                                             \
        c;                                                                                                             \
        fclose(f);                                                                                                     \
        s = readTestBaseline("testout");                                                                               \
        unlink("testout");                                                                                             \
    } while (0);
#endif

string read_test_baseline(const string &fn);