Todd Lipcon
14c0e93755
Convert dashes to underscores for unknown flags ( #177 )
2016-11-22 00:11:14 +00:00
dreamer.dead
46ea10f071
Do not pass flag type as a char literal when registering a new flag.
...
It is possible to create a type-safe version of FlagRegisterer
ctor (as well as some internal gflags classes), that will deduce
type of the new flag automatically.
This results in removing quite a few calls to strcmp() when new
flag is created.
No existing behavior change.
2016-07-29 21:02:29 +03:00
dreamer.dead
fa2663839c
Fix unittests expectations related to uint32.
2016-07-20 12:18:08 +03:00
Allan L. Bazinet
eaf05340dc
Support uint32 as flag type
...
From #99 , “Given that there is an unsigned flag type for 64-bit
integers, it is probably reasonable to request/expect the same for
32-bit integers.”
2016-04-05 10:50:21 -07:00
Andreas Schuh
752c63249b
fix: Include order of config.h and gflags.h in unit test
2016-03-01 21:34:24 +00:00
Andreas Schuh
799e910c74
fix: Include private config.h in gflags_unittest.cc
2016-03-01 19:56:02 +00:00
Andreas Schuh
2a3454c104
fix: DLL import/export defines for unit tests, remove obsolete config_for_unittests.h
2016-02-29 19:18:21 +00:00
Andreas Schuh
8ac4bc41aa
fix: Pass std::string directly, no need for c_str() call
2016-02-29 16:12:33 +00:00
Sergey Sharybin
4f100cb6a0
Resolve several missing declarations warnings
2015-12-31 17:09:59 +05:00
Andreas Schuh
ddc5357419
Add link dependency on shlwapi.lib during build configuration instead of #pragma comment statement. Use this library also on MinGW.
2014-03-19 17:32:23 +00:00
Andreas Schuh
5250372ab6
Fix conditional compilation of tests using glob expressions.
2014-03-19 15:55:43 +00:00
Andreas Schuh
8566bcf1eb
Replace GFLAGS_HAVE_* #defines by HAVE_* again.
2014-03-19 14:24:52 +00:00
Andreas Schuh
492ac156bc
Fix DLL build on Windows and use PathMatchSpec instead of fnmatch.
...
Expose as few system variables as possible through public interface.
Perform STRIP_FLAGS_HELP test using CMake instead of Bash.
Change file path separator used by gflags_reporting.cc to backslash on Windwos.
2014-03-18 22:03:10 +00:00
Andreas Schuh
6b7be9a00a
Enable test case which tests invalid negative value for uint64 flag.
2014-03-17 21:22:51 +00:00
Andreas Schuh
107681258b
Fix VS linker warning regarding locally defined FLAGS_tryfromenv symbol.
2014-03-17 21:20:24 +00:00
Andreas Schuh
8d3797cd15
Fix VS security warnings using SafeGetEnv and SafeFOpen utility functions.
2014-03-17 21:19:35 +00:00
Andreas Schuh
0d9486f9a3
Pass --test_tmpdir and --srcdir to unittests.
2014-03-17 21:15:52 +00:00
Andreas Schuh
8477f3174e
Fix build with Xcode 5, system checks, set LANGUAGE to CXX.
2014-03-15 14:15:33 +00:00
Andreas Schuh
8a563cfca3
Migrate unit tests to CMake/CTest. Fix preprocessor directive in gflags_unittest.cc.
2014-03-14 20:32:37 +00:00
Andreas Schuh
126f36b826
Enable build and execution of tests again using CTest.
2013-08-01 01:47:13 +01:00
Andreas Schuh
5ed8ae17a9
Remove build tool related files, operating system packages, and move unit tests to separate subdirectory.
2013-04-21 00:06:37 +01:00