From 6cf0825a0f9a597f5f5f711f311675e449bb66ac Mon Sep 17 00:00:00 2001 From: Dzmitry Ivaniuk Date: Fri, 1 Nov 2024 14:02:31 +0300 Subject: [PATCH] Add valve_iolink_shut_off_sorio tests --- test/device/PAC_dev_tests.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/device/PAC_dev_tests.cpp b/test/device/PAC_dev_tests.cpp index 44f4c8f62..157604431 100644 --- a/test/device/PAC_dev_tests.cpp +++ b/test/device/PAC_dev_tests.cpp @@ -1567,6 +1567,23 @@ TEST( valve_iolink_shut_off_sorio, evaluate_io ) str_buff ); } +TEST( valve_iolink_shut_off_sorio, get_fb_state ) + { + valve_iolink_shut_off_sorio V1( "V1" ); + V1.init( 0, 0, 1, 1 ); + V1.AO_channels.int_write_values[ 0 ] = new int_2[ 2 ]{ 0 }; + V1.AI_channels.int_read_values[ 0 ] = new int_2[ 2 ]{ 0 }; + auto buff = reinterpret_cast( V1.AI_channels.int_read_values[ 0 ] ); + + + EXPECT_TRUE( V1.get_fb_state() ); //Default value. + + G_PAC_INFO()->emulation_off(); + EXPECT_FALSE( V1.get_fb_state() ); + + G_PAC_INFO()->emulation_on(); + } + TEST( valve_iolink_gea_tvis_a15_ds, save_device_ex ) { valve_iolink_gea_tvis_a15_ds V1( "VGEA2" );