Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trackrdrd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
trackrdrd
Commits
659a023a
Commit
659a023a
authored
Jun 19, 2014
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_utils: fix declarations of function prototypes, extern and
static storage types
parent
908021b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
test_utils.c
trackrdrd/src/test/test_utils.c
+4
-5
test_utils.h
trackrdrd/src/test/test_utils.h
+8
-8
No files found.
trackrdrd/src/test/test_utils.c
View file @
659a023a
...
...
@@ -126,9 +126,8 @@ TEST_compareFileWithString(const char * fname, const char * text)
}
}
int
stdoutBak
;
int
stdoutNew
;
fpos_t
stdoutPos
;
static
int
stdoutBak
,
stdoutNew
;
static
fpos_t
stdoutPos
;
int
TEST_catchStdoutStart
()
...
...
@@ -161,8 +160,8 @@ TEST_catchStdoutEnd()
return
(
0
);
}
int
stderrBak
,
stderrNew
;
fpos_t
stderrPos
;
static
int
stderrBak
,
stderrNew
;
static
fpos_t
stderrPos
;
int
TEST_catchStderrStart
()
...
...
trackrdrd/src/test/test_utils.h
View file @
659a023a
...
...
@@ -84,22 +84,22 @@ extern const char * FILE_NAME_STDERR;
/**
* 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
*/
extern
int
TEST_catchStdoutEnd
(
void
);
int
TEST_catchStdoutEnd
(
void
);
/**
* 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
*/
extern
int
TEST_catchStderrEnd
(
void
);
int
TEST_catchStderrEnd
(
void
);
/**
* Test if files have same content. If the comparison is not successful
...
...
@@ -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
* 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.
...
...
@@ -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
* 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
...
...
@@ -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
* 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
...
...
@@ -142,7 +142,7 @@ extern int TEST_stdoutEquals(const char * text);
* file and a line number (starting with 1) if there was a difference
* in that line.
*/
extern
int
TEST_stderrEquals
(
const
char
*
text
);
int
TEST_stderrEquals
(
const
char
*
text
);
#endif
/* _TEST_UTILS_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment