Skip to content

Bridge test functions fail on s390x #292

@dswarbrick

Description

@dswarbrick

Another batch of tests are failing on s390x (and presumably other bigendian archs).

=== RUN   TestBridgeDecodeRaw
=== RUN   TestBridgeDecodeRaw/STP_state
    bridge_test.go:227: unexpected bridge (-want +got):
          &driver.Bridge{
          	... // 2 identical fields
          	MaxAge:        nil,
          	AgeingTime:    nil,
        - 	StpState:      s"enabled",
        + 	StpState:      nil,
          	Priority:      nil,
          	VlanFiltering: nil,
          	... // 28 identical fields
          }
=== RUN   TestBridgeDecodeRaw/VLAN_filtering
    bridge_test.go:227: unexpected bridge (-want +got):
          &driver.Bridge{
          	... // 4 identical fields
          	StpState:      nil,
          	Priority:      nil,
        - 	VlanFiltering: s"enabled",
        + 	VlanFiltering: nil,
          	VlanProtocol:  nil,
          	GroupFwdMask:  nil,
          	... // 26 identical fields
          }
--- FAIL: TestBridgeDecodeRaw (0.00s)
    --- FAIL: TestBridgeDecodeRaw/STP_state (0.00s)
    --- FAIL: TestBridgeDecodeRaw/VLAN_filtering (0.00s)
...
=== RUN   TestBridgePortDecodeRaw
=== RUN   TestBridgePortDecodeRaw/port_state
    bridge_test.go:422: unexpected bridge port (-want +got):
          &driver.BridgePort{
        - 	State:    s"forwarding",
        + 	State:    nil,
          	Priority: nil,
          	Cost:     nil,
          	... // 22 identical fields
          }
=== RUN   TestBridgePortDecodeRaw/port_cost
    bridge_test.go:422: unexpected bridge port (-want +got):
          &driver.BridgePort{
          	State:    nil,
          	Priority: nil,
        - 	Cost:     &100,
        + 	Cost:     nil,
          	Mode:     nil,
          	Guard:    nil,
          	... // 20 identical fields
          }
--- FAIL: TestBridgePortDecodeRaw (0.00s)
    --- FAIL: TestBridgePortDecodeRaw/port_state (0.00s)
    --- FAIL: TestBridgePortDecodeRaw/port_cost (0.00s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions