Commit c38b84c0 authored by Geoff Simmons's avatar Geoff Simmons

test_utils: fix declarations of function prototypes, extern and

            static storage types
parent 99271df9
...@@ -126,9 +126,8 @@ TEST_compareFileWithString(const char * fname, const char * text) ...@@ -126,9 +126,8 @@ TEST_compareFileWithString(const char * fname, const char * text)
} }
} }
int stdoutBak; static int stdoutBak, stdoutNew;
int stdoutNew; static fpos_t stdoutPos;
fpos_t stdoutPos;
int int
TEST_catchStdoutStart() TEST_catchStdoutStart()
...@@ -161,8 +160,8 @@ TEST_catchStdoutEnd() ...@@ -161,8 +160,8 @@ TEST_catchStdoutEnd()
return(0); return(0);
} }
int stderrBak, stderrNew; static int stderrBak, stderrNew;
fpos_t stderrPos; static fpos_t stderrPos;
int int
TEST_catchStderrStart() TEST_catchStderrStart()
......
...@@ -84,22 +84,22 @@ extern const char * FILE_NAME_STDERR; ...@@ -84,22 +84,22 @@ extern const char * FILE_NAME_STDERR;
/** /**
* Redirect stdout into new file FILE_NAME_STDOUT * Redirect stdout into new file FILE_NAME_STDOUT
*/ */
extern int TEST_catchStdoutStart(void); int TEST_catchStdoutStart(void);
/** /**
* Reset redirection of stdout and close resulting file FILE_NAME_STDOUT * Reset redirection of stdout and close resulting file FILE_NAME_STDOUT
*/ */
extern int TEST_catchStdoutEnd(void); int TEST_catchStdoutEnd(void);
/** /**
* Redirect stderr into new file FILE_NAME_STDERR * Redirect stderr into new file FILE_NAME_STDERR
*/ */
extern int TEST_catchStderrStart(void); int TEST_catchStderrStart(void);
/** /**
* Reset redirection of stdout and close resulting file FILE_NAME_STDERR * Reset redirection of stdout and close resulting file FILE_NAME_STDERR
*/ */
extern int TEST_catchStderrEnd(void); int TEST_catchStderrEnd(void);
/** /**
* Test if files have same content. If the comparison is not successful * Test if files have same content. If the comparison is not successful
...@@ -110,7 +110,7 @@ extern int TEST_catchStderrEnd(void); ...@@ -110,7 +110,7 @@ extern int TEST_catchStderrEnd(void);
* @return 0 on success, a value < 0 if we had problems reading the files and a * @return 0 on success, a value < 0 if we had problems reading the files and a
* line number (starting with 1) if there was a difference in that line. * line number (starting with 1) if there was a difference in that line.
*/ */
extern int TEST_compareFiles(const char * fname1, const char * fname2); int TEST_compareFiles(const char * fname1, const char * fname2);
/** /**
* Test if file contents equals given text. * Test if file contents equals given text.
...@@ -120,7 +120,7 @@ extern int TEST_compareFiles(const char * fname1, const char * fname2); ...@@ -120,7 +120,7 @@ extern int TEST_compareFiles(const char * fname1, const char * fname2);
* @return 0 on success, a value < 0 if we had problems reading the file and a * @return 0 on success, a value < 0 if we had problems reading the file and a
* line number (starting with 1) if there was a difference in that line. * line number (starting with 1) if there was a difference in that line.
*/ */
extern int TEST_compareFileWithString(const char * fname, const char * text); int TEST_compareFileWithString(const char * fname, const char * text);
/** /**
* Test if previously saved stdout equals given text. See * Test if previously saved stdout equals given text. See
...@@ -131,7 +131,7 @@ extern int TEST_compareFileWithString(const char * fname, const char * text); ...@@ -131,7 +131,7 @@ extern int TEST_compareFileWithString(const char * fname, const char * text);
* file and a line number (starting with 1) if there was a difference * file and a line number (starting with 1) if there was a difference
* in that line. * in that line.
*/ */
extern int TEST_stdoutEquals(const char * text); int TEST_stdoutEquals(const char * text);
/** /**
* Test if previously saved stderr equals given text. See * Test if previously saved stderr equals given text. See
...@@ -142,7 +142,7 @@ extern int TEST_stdoutEquals(const char * text); ...@@ -142,7 +142,7 @@ extern int TEST_stdoutEquals(const char * text);
* file and a line number (starting with 1) if there was a difference * file and a line number (starting with 1) if there was a difference
* in that line. * in that line.
*/ */
extern int TEST_stderrEquals(const char * text); int TEST_stderrEquals(const char * text);
#endif /* _TEST_UTILS_H */ #endif /* _TEST_UTILS_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment