|
Last change
on this file since 2595 was 2595, checked in by bird, 12 years ago |
|
gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)
|
-
Property svn:eol-style
set to
native
|
|
File size:
709 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | . "${srcdir=.}/init.sh"
|
|---|
| 3 |
|
|---|
| 4 | # We are not interested in triggering bugs in the compilers and tools
|
|---|
| 5 | # (such as gcc 4.3.1 on openSUSE 11.0).
|
|---|
| 6 | unset MALLOC_PERTURB_
|
|---|
| 7 |
|
|---|
| 8 | # Rather than figure out how to invoke the compiler with the right
|
|---|
| 9 | # include path ourselves, we let make do it:
|
|---|
| 10 | (cd "$initial_cwd_" && rm -f test-verify.o \
|
|---|
| 11 | && $MAKE test-verify.o >/dev/null 2>&1) \
|
|---|
| 12 | || skip_ "cannot compile error-free"
|
|---|
| 13 |
|
|---|
| 14 | # Now, prove that we encounter all expected compilation failures:
|
|---|
| 15 | : >out
|
|---|
| 16 | : >err
|
|---|
| 17 | for i in 1 2 3 4 5; do
|
|---|
| 18 | (cd "$initial_cwd_"
|
|---|
| 19 | rm -f test-verify.o
|
|---|
| 20 | $MAKE CFLAGS=-DEXP_FAIL=$i test-verify.o) >>out 2>>err \
|
|---|
| 21 | && { warn_ "compiler didn't detect verification failure $i"; fail=1; }
|
|---|
| 22 | done
|
|---|
| 23 |
|
|---|
| 24 | Exit $fail
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.