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 82303e8..2b28943 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
 {