summaryrefslogtreecommitdiffstats
path: root/Templates/TestDriver.cxx.in
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'nolint_typedef_testdriver'Brad King2018-06-011-2/+2
|\ | | | | | | | | | | | | bbbcbb1a48 TestDriver: Disable clang-tidy 'modernize-use-using' Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2118
| * TestDriver: Disable clang-tidy 'modernize-use-using'Sylvain Joubert2018-05-311-2/+2
| |
* | TestDriver: Replace strncpy with strcpySander Vrijders2018-05-301-1/+1
|/ | | | | | | | GCC 8.1.0 now gives an error if `strncpy` is called with a bound depending on the length of the source argument. Replace `strncpy` with `strcpy` as the length is known a priori. Fixes: #18038
* TestDriver: fix style-'variableScope' cppcheck warningSylvain Joubert2017-11-221-2/+2
| | | | | When applied on a user project, cppcheck complains that the 'test_name' variable could have a reduced scope.
* TestDriver: Fix -Wconversion warningBrad King2017-07-141-2/+2
| | | | | | | Since commit v3.8.0-rc1~51^2~1 (TestDriver: calc NumTests at compile time, 2017-01-24) we convert an expression that uses `sizeof()` to an `int` as a compile-time constant. Some GCC versions warn about this with `-Wconversion`. Add a cast to avoid the warning.
* TestDriver: Remove unused local variable initializationBrad King2017-05-101-1/+1
|
* TestDriver: fix/silence clang-tidy warningsDaniel Pfeifer2017-01-241-15/+12
|
* TestDriver: calc NumTests at compile timeDaniel Pfeifer2017-01-241-5/+4
|
* TestDriver: use for loopDaniel Pfeifer2017-01-241-3/+1
|
* TestDriver: abstract CM_CAST macroDaniel Pfeifer2017-01-241-13/+9
|
* TestDriver: Revise C++ coding style using clang-formatDaniel Pfeifer2017-01-241-65/+45
|
* create_test_sourcelist: Use safer strncpy instead of strcpySylvain Joubert2016-08-251-4/+6
| | | | | Clang-tidy advises to use a safer function in place of strcpy. This should avoid such warnings in user build using clang-tidy.
* create_test_sourcelist: Suppress MSVC warnings in test driver (#15066)Brad King2014-08-071-0/+4
| | | | Suggested-by: Ken Moreland <kmorel@sandia.gov>
* create_test_sourcelist: Initialize variable at declarationSean McBride2014-03-311-2/+1
| | | | Clang -Wconditional-uninitialized warns otherwise.
* create_test_sourcelist: Fix linkage in generated test driver codeSean McBride2013-11-121-2/+2
| | | | Mark private function/global with static linkage.
* TestDriver.cxx.in: Untrusted array index read.Matt McCormick2013-10-161-0/+7
| | | | | | | | | | | | | | As reported by Coverity Scan, if the configured file contains a #include, Untrusted array index read The array index could be controlled by an attacker, leading to reads outside the bounds of the array. In main: Read from array at index computed using an unscrutinized value from an untrusted source (CWE-129) CID 1081283 (#1 of 1): Untrusted array index read (TAINTED_SCALAR) 25. tainted_data: Using tainted variable "testToRun" as an index into an array "cmakeGeneratedFunctionMapEntries".
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-4/+4
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* COMP: Don't emit old style cast warning when configured as C++ but still ↵David Cole2008-12-091-2/+14
| | | | allow being configured as C. Thanks to Monsieur Francois Bertel for the patch.
* BUG: the return value of scanf should not be ignoredAmitha Perera2008-11-251-1/+5
|
* make sure tests flush outputBill Hoffman2004-07-161-0/+1
|
* BUG: remove debug pop hacks, also remove duplicate call to argvc functionBill Hoffman2004-05-081-39/+0
|
* fix warning maybeKen Martin2004-05-071-1/+0
|
* fix warningKen Martin2004-05-061-1/+0
|
* ENH: remove unused variableBill Hoffman2004-04-301-1/+0
|
* ENH: make test driver more flexible by using a configured file instead of ↵Bill Hoffman2004-04-281-0/+180
generating all the code. fixes bug 28