]> gcc.gnu.org Git - gcc.git/commitdiff
libstdc++, testsuite: Correct an init.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 24 Dec 2022 11:04:41 +0000 (11:04 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 24 Dec 2022 17:51:12 +0000 (17:51 +0000)
in leap_seconds.cc, we are testing to see if the function that
overrides the default zoneinfo directory has been called.  That
is implemented with a static boolean that needs to be initialized
to false.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libstdc++-v3/ChangeLog:

* testsuite/std/time/tzdb/leap_seconds.cc: Initialize the
override_used test var to false.

libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc

index 82303e8bdf0324af3cef662cc64c2328d73aff30..2b289436583a41f12142bf4342d9e05e154be744 100644 (file)
@@ -7,7 +7,7 @@
 #include <fstream>
 #include <testsuite_hooks.h>
 
-static bool override_used = true;
+static bool override_used = false;
 
 namespace __gnu_cxx
 {
This page took 0.059615 seconds and 5 git commands to generate.