Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Nektar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dappur
Nektar
Commits
e65f0e32
Commit
e65f0e32
authored
8 years ago
by
Chris Cantwell
Browse files
Options
Downloads
Patches
Plain Diff
Modifed Tester to dump output.out and output.err files on segfault.
parent
40452dc8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/Tester.cpp.in
+14
-10
14 additions, 10 deletions
tests/Tester.cpp.in
with
14 additions
and
10 deletions
tests/Tester.cpp.in
+
14
−
10
View file @
e65f0e32
...
...
@@ -231,12 +231,15 @@ int main(int argc, char *argv[])
command += file.GetParameters();
command += " 1>output.out 2>output.err";
status = 0;
string line;
// Run executable to perform test.
if (system(command.c_str()))
{
cerr << "Error occurred running test:" << endl;
cerr << "Command: " << command << endl;
throw
1;
status =
1;
}
// Check output files exist
...
...
@@ -256,17 +259,18 @@ int main(int argc, char *argv[])
}
// Test against all metrics
status = 0;
string line;
for (int i = 0; i < metrics.size(); ++i)
if (status == 0)
{
vStdout.clear();
vStderr.clear();
vStdout.seekg(0, ios::beg);
vStderr.seekg(0, ios::beg);
if (!metrics[i]->Test(vStdout, vStderr))
for (int i = 0; i < metrics.size(); ++i)
{
status = 1;
vStdout.clear();
vStderr.clear();
vStdout.seekg(0, ios::beg);
vStderr.seekg(0, ios::beg);
if (!metrics[i]->Test(vStdout, vStderr))
{
status = 1;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment