1N/A/*
1N/A * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
1N/A * All rights reserved.
1N/A *
1N/A * By using this file, you agree to the terms and conditions set
1N/A * forth in the LICENSE file which can be found at the top level of
1N/A * the sendmail distribution.
1N/A */
1N/A
1N/A#pragma ident "%Z%%M% %I% %E% SMI"
1N/A
1N/A#include <sm/gen.h>
1N/ASM_IDSTR(id, "@(#)$Id: t-path.c,v 1.6 2001/07/05 22:47:29 gshapiro Exp $")
1N/A
1N/A#include <string.h>
1N/A#include <sm/path.h>
1N/A#include <sm/test.h>
1N/A
1N/Aint
1N/Amain(argc, argv)
1N/A int argc;
1N/A char **argv;
1N/A{
1N/A char *r;
1N/A
1N/A sm_test_begin(argc, argv, "test path handling");
1N/A
1N/A SM_TEST(sm_path_isdevnull(SM_PATH_DEVNULL));
1N/A r = "/dev/null";
1N/A SM_TEST(sm_path_isdevnull(r));
1N/A r = "/nev/dull";
1N/A SM_TEST(!sm_path_isdevnull(r));
1N/A r = "nul";
1N/A SM_TEST(!sm_path_isdevnull(r));
1N/A
1N/A return sm_test_end();
1N/A}