summaryrefslogtreecommitdiff
path: root/src/gflags_unittest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/gflags_unittest.sh')
-rwxr-xr-xsrc/gflags_unittest.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gflags_unittest.sh b/src/gflags_unittest.sh
index 39b03c5..c81e41e 100755
--- a/src/gflags_unittest.sh
+++ b/src/gflags_unittest.sh
@@ -111,6 +111,9 @@ Expect $LINENO 0 "PASS" ""
# --help should show all flags, including flags from gflags_reporting
Expect $LINENO 1 "/gflags_reporting.cc" "" --help
+# Make sure that --help prints even very long helpstrings.
+Expect $LINENO 1 "end of a long helpstring" "" --help
+
# Make sure --help reflects flag changes made before flag-parsing
Expect $LINENO 1 \
"-changed_bool1 (changed) type: bool default: true" "" --help