view tests/test-fprintf-posix3.sh @ 17364:7524d97ae56f

stdalign: port to stricter ISO C11 ISO C11 says that _Alignof's operand must be a parenthesized type. Problem reported by Eli Zaretskii in <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>. * doc/posix-headers/stdalign.texi (stdalign.h): Document this. * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 29 Mar 2013 19:47:13 -0700
parents c8f2d55830b2
children 8c1a17df67e0
line wrap: on
line source

#!/bin/sh

# Test against a memory leak.

(./test-fprintf-posix3${EXEEXT} 0
 result=$?
 if test $result != 77 && test $result != 78; then result=1; fi
 exit $result
) 2>/dev/null
malloc_result=$?
if test $malloc_result = 77; then
  echo "Skipping test: no way to determine address space size"
  exit 77
fi

./test-fprintf-posix3${EXEEXT} 1 > /dev/null
result=$?
if test $result = 77; then
  echo "Skipping test: no way to determine address space size"
  exit 77
fi
if test $result != 0; then
  exit 1
fi

if test $malloc_result = 78; then
  echo "Skipping test: get_rusage_as() doesn't work"
  exit 77
fi

exit 0