5aa3256c5058816353d0b7ea46a10155b107d7cd
[platform/upstream/m4.git] / checks / 201.mkstemp
1 dnl @ ../doc/m4.texinfo:6869: Origin of test
2 dnl @ expected status: 0
3 dnl @ extra options:  -G
4 dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
5 dnl @ Foundation, Inc.
6 dnl @ This file is free software; the Free Software Foundation
7 dnl @ gives unlimited permission to copy and/or distribute it
8 dnl @ with or without modifications, as long as this notice
9 dnl @ is preserved.
10 syscmd(`rm -f foo-*')sysval
11 dnl @result{}0
12 len(maketemp(`foo-XXXXX'))
13 dnl @error{}m4:stdin:2: recommend using mkstemp instead
14 dnl @result{}9
15 define(`abc', `def')
16 dnl @result{}
17 maketemp(`foo-abc')
18 dnl @result{}foo-def
19 dnl @error{}m4:stdin:4: recommend using mkstemp instead
20 syscmd(`test -f foo-*')ifelse(sysval, `0', `0', `1')
21 dnl @result{}1