#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2015-2019, Intel Corporation

#
# src/test/obj_first_next/TEST0 -- unit test for POBJ_NEXT macro
#
# Returns next element with proper type number
#

. ../unittest/unittest.sh

require_test_type medium

setup

expect_normal_exit ./obj_first_next$EXESUFFIX $DIR/testfile\
	a:0:0 a:0:1 a:1:1 a:0:2 a:1:2 a:0:3 a:1:3 P:0 P:1\
	n:0:2 n:1:1 r:0:0 r:1:0 P:0 P:1\
	n:0:0 n:1:0 a:0:4 a:1:4 P:0 P:1\
	n:0:1 n:1:1
check

pass
