commit | 420b6c317de87890e06225de6e2f8af7bf714df0 | [log] [tgz] |
---|---|---|
author | Peter Maydell <peter.maydell@linaro.org> | Thu Apr 14 14:11:56 2011 +0100 |
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | Thu Apr 14 17:31:47 2011 +0200 |
tree | 3cbbae13610ae4451a7020ebe945affd6b51d839 | |
parent | 4d9ad7f793605abd9806fc932b3e04e028894565 [diff] |
tests/test-mmap.c: Check mmap() return value before using it Correct the position of a "stop if MAP_FAILED" check in the mmap() tests, so that if mmap() does fail we print a failure message rather than segfaulting inside memcpy(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>