Commit 9904545a authored by Christopher Bruns's avatar Christopher Bruns
Browse files

TestNormalModeLangevin now returns 1 on failure, instead of unhandled exception.

parent d9e73e43
#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;
}
}
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