From 3ef521b53ffa544555729bad6f6092e667c9b4ee Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 18 Sep 2022 11:47:37 +0200 Subject: [PATCH] Add parse test for CB with no coverage Causes crashes but inside FlightGear --- simgear/environment/test_metar.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/simgear/environment/test_metar.cxx b/simgear/environment/test_metar.cxx index 815d8135..6b23d58a 100644 --- a/simgear/environment/test_metar.cxx +++ b/simgear/environment/test_metar.cxx @@ -129,6 +129,12 @@ void test_LOWK_failure() #endif } +void test_LFBT_failure() +{ + // https://sourceforge.net/p/flightgear/codetickets/2765/ + SGMetar m1("2022/09/15 17:00 LFBT 151700Z AUTO 21008KT 9999 -RA FEW060/// SCT076/// OVC088/// ///CB 20/16 Q1014 TEMPO 27015G25KT 4000 -TSRA"); +} + int main(int argc, char* argv[]) { try { @@ -141,6 +147,7 @@ int main(int argc, char* argv[]) test_clouds_without_height(); test_GLRB_failure(); test_LOWK_failure(); + test_LFBT_failure(); } catch (sg_exception& e) { cerr << "got exception:" << e.getMessage() << endl; return -1;