190792Sgshapiro/* 290792Sgshapiro * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers. 390792Sgshapiro * All rights reserved. 490792Sgshapiro * 590792Sgshapiro * By using this file, you agree to the terms and conditions set 690792Sgshapiro * forth in the LICENSE file which can be found at the top level of 790792Sgshapiro * the sendmail distribution. 890792Sgshapiro */ 990792Sgshapiro 1090792Sgshapiro#include <sm/gen.h> 1198121SgshapiroSM_IDSTR(id, "@(#)$Id: t-path.c,v 1.8 2001/09/11 04:04:49 gshapiro Exp $") 1290792Sgshapiro 1390792Sgshapiro#include <string.h> 1490792Sgshapiro#include <sm/path.h> 1590792Sgshapiro#include <sm/test.h> 1690792Sgshapiro 1790792Sgshapiroint 1890792Sgshapiromain(argc, argv) 1990792Sgshapiro int argc; 2090792Sgshapiro char **argv; 2190792Sgshapiro{ 2290792Sgshapiro char *r; 2390792Sgshapiro 2490792Sgshapiro sm_test_begin(argc, argv, "test path handling"); 2590792Sgshapiro 2690792Sgshapiro SM_TEST(sm_path_isdevnull(SM_PATH_DEVNULL)); 2790792Sgshapiro r = "/dev/null"; 2890792Sgshapiro SM_TEST(sm_path_isdevnull(r)); 2990792Sgshapiro r = "/nev/dull"; 3090792Sgshapiro SM_TEST(!sm_path_isdevnull(r)); 3190792Sgshapiro r = "nul"; 3290792Sgshapiro SM_TEST(!sm_path_isdevnull(r)); 3390792Sgshapiro 3490792Sgshapiro return sm_test_end(); 3590792Sgshapiro} 36