Skip to content
Snippets Groups Projects
Commit eb5081b4 authored by Hahn, Steven's avatar Hahn, Steven Committed by GitHub
Browse files

Merge pull request #17503 from mantidproject/unique_nxcansas_test_filenames-1

Use unique temporary file in unit test helpers
parents 44aaea5a 42a7b690
No related branches found
No related tags found
No related merge requests found
#ifndef MANTID_DATAHANDLINGTEST_NXCANSASTESTHELPER_H #ifndef MANTID_DATAHANDLINGTEST_NXCANSASTESTHELPER_H
#define MANTID_DATAHANDLINGTEST_NXCANSASTESTHELPER_H #define MANTID_DATAHANDLINGTEST_NXCANSASTESTHELPER_H
#include "MantidAPI/MatrixWorkspace_fwd.h"
#include <Poco/TemporaryFile.h>
#include <string> #include <string>
#include <vector> #include <vector>
#include "MantidAPI/MatrixWorkspace_fwd.h"
namespace NXcanSASTestHelper { namespace NXcanSASTestHelper {
struct NXcanSASTestParameters { struct NXcanSASTestParameters {
NXcanSASTestParameters() { initParameters(); } NXcanSASTestParameters() { initParameters(); }
void initParameters() { void initParameters() {
filename = "SaveNXcanSASTestFile.h5"; Poco::TemporaryFile tmpFile;
tmpFile.keep();
filename = tmpFile.path();
size = 10; size = 10;
value = 10.23; value = 10.23;
error = 3.45; error = 3.45;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment