Noticed while debugging tz info support on Darwin, unless I miss
some other reasoning...
OK for trunk?
Iain

--- 8< ---

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 <i...@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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc 
b/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc
index 82303e8bdf0..2b289436583 100644
--- a/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc
+++ b/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc
@@ -7,7 +7,7 @@
 #include <fstream>
 #include <testsuite_hooks.h>
 
-static bool override_used = true;
+static bool override_used = false;
 
 namespace __gnu_cxx
 {
-- 
2.37.1 (Apple Git-137.1)

Reply via email to