blob: 4c9221a398ca66737bf4932cc0bee58f1c1a2d86 [file] [log] [blame]
/*
* Copyright (c) 2024 Abhinav Srivastava
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/ztest.h>
#include <stropts.h>
#include <errno.h>
ZTEST(stropts, test_putmsg)
{
const struct strbuf *ctrl = NULL;
const struct strbuf *data = NULL;
int fd = -1;
int ret = putmsg(fd, ctrl, data, 0);
zassert_equal(ret, -1, "Expected return value -1, got %d", ret);
zassert_equal(errno, ENOSYS, "Expected errno ENOSYS, got %d", errno);
}
ZTEST_SUITE(stropts, NULL, NULL, NULL, NULL, NULL);