Make some unit tests use mock file output
[alexxy/gromacs.git] / src / gromacs / selection / selectioncollection.cpp
index e18078814b489a5bfdfc32878001dd145bad0b7a..1e0726dbbd86f345290787e0a5287c0eabc46bf1 100644 (file)
@@ -62,6 +62,7 @@
 #include "gromacs/topology/topology.h"
 #include "gromacs/utility/exceptions.h"
 #include "gromacs/utility/file.h"
+#include "gromacs/utility/filestream.h"
 #include "gromacs/utility/gmxassert.h"
 #include "gromacs/utility/smalloc.h"
 #include "gromacs/utility/stringutil.h"
@@ -292,7 +293,7 @@ void printHelp(gmx_ana_selcollection_t *sc, const std::string &line)
     {
         sc->rootHelp = createSelectionHelpTopic();
     }
-    HelpWriterContext context(&File::standardError(),
+    HelpWriterContext context(&TextOutputFile::standardError(),
                               eHelpOutputFormat_Console);
     HelpManager       manager(*sc->rootHelp, context);
     try