File: catch2_server.cpp

package info (click to toggle)
tango 10.0.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 89,936 kB
  • sloc: cpp: 201,786; sh: 1,645; python: 953; java: 800; perl: 467; javascript: 447; xml: 325; makefile: 272; sql: 72; ruby: 24
file content (20 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "catch2_common.h"

SCENARIO("The device server can be killed")
{
    GIVEN("a device proxy to a dserver device")
    {
        TangoTest::Context ctx{"dserver_kill", "Empty"};
        auto admin = ctx.get_admin_proxy();

        WHEN("we call the Kill command")
        {
            REQUIRE_NOTHROW(admin->command_inout("Kill"));

            THEN("the device server stops soon")
            {
                REQUIRE(ctx.wait_for_exit() == 0);
            }
        }
    }
}