diff options
| author | Roland McGrath <[email protected]> | 2010-06-14 17:44:38 -0700 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2010-06-14 17:44:38 -0700 |
| commit | ec86e5fa64540a6bb027b0dd505322455968c8e2 (patch) | |
| tree | a507db79de6100f0ca8fb760192f7886bdf420f2 /tests | |
| parent | d763578420c9570a882f542d9ec8eb0b5974dffe (diff) | |
Fix unstrip for modifying file in place.
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 60b0847a..0176fb49 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 |
