Windows: fix stressHistoFit when interpreted #3312
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes the following failure of the test-stresshistofit-interpreted test:
151: Processing C:/Users/sftnight/git/master/test/stressHistoFit.cxx...
151: In file included from input_line_10:1:
151: C:\Users\sftnight\git\master\test\stressHistoFit.cxx:117:9: warning: 'FOREGROUND_BLUE' macro redefined [-Wmacro-redefined]
151: #define FOREGROUND_BLUE 1
151: ^
151: C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\um\consoleapi2.h:35:9: note: previous definition is here
151: #define FOREGROUND_BLUE 0x0001 // text color contains blue.
151: ^
151: In file included from input_line_10:1:
151: C:\Users\sftnight\git\master\test\stressHistoFit.cxx:118:9: warning: 'FOREGROUND_GREEN' macro redefined [-Wmacro-redefined]
151: #define FOREGROUND_GREEN 2
151: ^
151: C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\um\consoleapi2.h:36:9: note: previous definition is here
151: #define FOREGROUND_GREEN 0x0002 // text color contains green.
151: ^
151: In file included from input_line_10:1:
151: C:\Users\sftnight\git\master\test\stressHistoFit.cxx:119:9: warning: 'FOREGROUND_RED' macro redefined [-Wmacro-redefined]
151: #define FOREGROUND_RED 4
151: ^
151: C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\um\consoleapi2.h:37:9: note: previous definition is here
151: #define FOREGROUND_RED 0x0004 // text color contains red.
151: ^
151: In file included from input_line_10:1:
151: C:\Users\sftnight\git\master\test\stressHistoFit.cxx:120:9: warning: 'FOREGROUND_INTENSITY' macro redefined [-Wmacro-redefined]
151: #define FOREGROUND_INTENSITY 8
151: ^
151: C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\um\consoleapi2.h:38:9: note: previous definition is here
151: #define FOREGROUND_INTENSITY 0x0008 // text color is intensified.
151: ^
151: In file included from input_line_10:1:
151: C:\Users\sftnight\git\master\test\stressHistoFit.cxx:124:19: error: functions that differ only in their return type cannot be overloaded
151: bool __stdcall SetConsoleTextAttribute(void *, unsigned int);
151: ^
151: C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\um\consoleapi2.h:245:1: note: previous declaration is here
151: SetConsoleTextAttribute(
151: ^
151: Error in TInterpreter::AutoParse: Error parsing payload code for class TUnuranContDist with content:
151:
151: #line 1 "libUnuran dictionary payload"
151:
151: #ifndef HAVE_CONFIG_H
151: #define HAVE_CONFIG_H 1
151: #endif
151:
151: #define _BACKWARD_BACKWARD_WARNING_H
151: #include "TUnuran.h"
151: #include "TUnuranBaseDist.h"
151: #include "TUnuranContDist.h"
151: #include "TUnuranDiscrDist.h"
151: #include "TUnuranEmpDist.h"
151: #include "TUnuranMultiContDist.h"
151: #include "TUnuranSampler.h"
151:
151: #undef _BACKWARD_BACKWARD_WARNING_H
151:
151: Error in TInterpreter::AutoParse: Error parsing payload code for class TUnuranDiscrDist with content:
151:
151: #line 1 "libUnuran dictionary payload"
151:
151: #ifndef HAVE_CONFIG_H
151: #define HAVE_CONFIG_H 1
151: #endif
151:
151: #define _BACKWARD_BACKWARD_WARNING_H
151: #include "TUnuran.h"
151: #include "TUnuranBaseDist.h"
151: #include "TUnuranContDist.h"
151: #include "TUnuranDiscrDist.h"
151: #include "TUnuranEmpDist.h"
151: #include "TUnuranMultiContDist.h"
151: #include "TUnuranSampler.h"
151:
151: #undef _BACKWARD_BACKWARD_WARNING_H
151:
151: Error in TInterpreter::AutoParse: Error parsing payload code for class TUnuranEmpDist with content:
151:
151: #line 1 "libUnuran dictionary payload"
151:
151: #ifndef HAVE_CONFIG_H
151: #define HAVE_CONFIG_H 1
151: #endif
151:
151: #define _BACKWARD_BACKWARD_WARNING_H
151: #include "TUnuran.h"
151: #include "TUnuranBaseDist.h"
151: #include "TUnuranContDist.h"
151: #include "TUnuranDiscrDist.h"
151: #include "TUnuranEmpDist.h"
151: #include "TUnuranMultiContDist.h"
151: #include "TUnuranSampler.h"
151:
151: #undef _BACKWARD_BACKWARD_WARNING_H
151:
151: CMake Error at C:/Users/sftnight/git/master/cmake/modules/RootTestDriver.cmake:232 (message):
151: error code: 1
151:
151:
2/2 Test #151: test-stresshistofit-interpreted ...***Failed Error regular expression found in output. Regex=[FAILED|Error in] 10.55 sec