Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
9904545a
Commit
9904545a
authored
Nov 25, 2009
by
Christopher Bruns
Browse files
TestNormalModeLangevin now returns 1 on failure, instead of unhandled exception.
parent
d9e73e43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
plugins/normalModeLangevin/test/TestNormalModeLangevin.cpp
plugins/normalModeLangevin/test/TestNormalModeLangevin.cpp
+13
-3
No files found.
plugins/normalModeLangevin/test/TestNormalModeLangevin.cpp
View file @
9904545a
#include "OpenMM.h"
#include <vector>
#include <string>
#include <iostream>
using
namespace
OpenMM
;
using
namespace
std
;
...
...
@@ -11,11 +12,20 @@ void testLoadNMLPlugin()
vector
<
string
>
kernelName
;
kernelName
.
push_back
(
"IntegrateNMLStepKernel"
);
// Was NormalModeLangevin plugin loaded?
const
Platform
&
platform
=
Platform
::
findPlatform
(
kernelName
);
// throws if no platform with kernel
Platform
&
platform
=
Platform
::
findPlatform
(
kernelName
);
// throws if no platform with kernel
}
int
main
()
{
testLoadNMLPlugin
();
return
0
;
try
{
testLoadNMLPlugin
();
cout
<<
"tests passed"
<<
endl
;
return
0
;
}
catch
(...)
{
cout
<<
"FAILED"
<<
endl
;
return
1
;
}
}
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