diff options
| author | Roland McGrath <[email protected]> | 2010-07-01 18:43:55 -0700 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2010-07-01 18:43:55 -0700 |
| commit | 406523d20d061897cb5fe9fc9e4bbe2bb45128fa (patch) | |
| tree | 7b762aadafa35f4cfcc7eb4e460d7e97cb67ef44 /tests | |
| parent | b000b888cf07db01520640a60392082afc8742fa (diff) | |
| parent | 2c71252e25a048d91f507a5b2579cfdff7c82417 (diff) | |
Merge commit 'elfutils-0.148' into dwarf
Conflicts:
libdw/Makefile.am
libdw/libdwP.h
src/readelf.c
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ChangeLog | 4 | ||||
| -rwxr-xr-x | tests/run-unstrip-test.sh | 13 |
2 files changed, 15 insertions, 2 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index e2fe66f2..6e4519d6 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2010-06-04 Roland McGrath <[email protected]> + + * run-unstrip-test.sh: Also test modifying the file in place. + 2010-04-22 Roland McGrath <[email protected]> * addrcfi.c (handle_cfi): Fix function name in error message. diff --git a/tests/run-unstrip-test.sh b/tests/run-unstrip-test.sh index 8f0fc698..b9959a10 100755 --- a/tests/run-unstrip-test.sh +++ b/tests/run-unstrip-test.sh @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2007 Red Hat, Inc. +# Copyright (C) 2007-2010 Red Hat, Inc. # This file is part of Red Hat elfutils. # # Red Hat elfutils is free software; you can redistribute it and/or modify @@ -30,7 +30,7 @@ stripped=${stripped:-testfile17} debugfile=${debugfile:-${stripped}.debug} testfiles $original $stripped $debugfile -tempfiles testfile.unstrip +tempfiles testfile.unstrip testfile.inplace # These are old reference output from run-test-strip6.sh, when # strip left the .debug file with unchanged sh_size in @@ -40,3 +40,12 @@ tempfiles testfile.unstrip testrun ../src/unstrip -o testfile.unstrip $stripped $debugfile testrun ../src/elfcmp --hash-inexact $original testfile.unstrip + +# Also test modifying the file in place. + +rm -f testfile.inplace +cp $debugfile testfile.inplace +chmod 644 testfile.inplace +testrun ../src/unstrip $stripped testfile.inplace + +testrun ../src/elfcmp --hash-inexact $original testfile.inplace |
