Fix -Wstring-compare testcase build failure
[deliverable/binutils-gdb.git] / gdb / testsuite / ChangeLog
index 8ad2448080aed42e6e8e4a69c4d6e5ee632a5e1b..a01a065d814f1855f413acd867a9e2f2d48cbf1c 100644 (file)
@@ -1,3 +1,12 @@
+2020-06-26  Gary Benson <gbenson@redhat.com>
+
+       * gdb.cp/try_catch.cc: Include string.h.
+       (main): Replace comparison against string literal with
+       strcmp, avoiding build failure with -Wstring-compare.
+       Add "marker test-complete".
+       * gdb.cp/try_catch.exp: Run the test to the above marker,
+       then verify that the value of "test" is still true.
+
 2020-06-25  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * gdb.arch/riscv-tdesc-regs.exp: New test cases.
This page took 0.026696 seconds and 4 git commands to generate.