OpenCores
URL https://opencores.org/ocsvn/1g_ethernet_dpi/1g_ethernet_dpi/trunk

Subversion Repositories 1g_ethernet_dpi

[/] [1g_ethernet_dpi/] [trunk/] [sw/] [app/] [gtest/] [gtest_1.cpp] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 kuzmi4
#include <gtest/gtest.h>
2
#include <string>
3
 
4
#include "ethlc.hpp"
5
 
6
//TEST_F(TestDev, test_1)
7
TEST(TestDev, test_1)
8
{
9
    // dec vars
10
    std::string dev_addr;
11
    std::string details;
12
    bool result;
13
 
14
    // prep WRONG ipv4-addr
15
    dev_addr = "192.168.43.6";
16
 
17
    // proc
18
    try {
19
        ethlc dev(dev_addr);
20
        // if there are here == ERR
21
        FAIL() << "-> ethlc-init problem#1" << std::endl;
22
    }
23
    catch (int val) { // no device found == OK
24
        SUCCEED();
25
    }
26
    // Final
27
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.