diff options
author | Jim Meyering <jim@meyering.net> | 2007-09-12 14:52:26 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-09-15 08:40:39 +0200 |
commit | a669dfdabb3fa1be2e1367d53a797d495e7bd5c9 (patch) | |
tree | c88d6414649f7f4f5571138e193c72da44a03876 /tests/dd | |
parent | 0539705768992ebcc290bc859f64e27898c7f958 (diff) | |
download | coreutils-a669dfdabb3fa1be2e1367d53a797d495e7bd5c9.tar.xz |
More misc, test-related changes. (some to allow running tests as root)
Diffstat (limited to 'tests/dd')
-rwxr-xr-x | tests/dd/misc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/dd/misc b/tests/dd/misc index aea949109..76183b3f8 100755 --- a/tests/dd/misc +++ b/tests/dd/misc @@ -31,14 +31,9 @@ tmp_out=dd-out.$$ fail=0 warn=0 -test_failure=0 -echo data > $tmp_in || test_failure=1 -ln $tmp_in $tmp_in2 || test_failure=1 -ln -s $tmp_in $tmp_sym || test_failure=1 -if test $test_failure = 1; then - echo 'failure in testing framework' - exit 1 -fi +echo data > $tmp_in || framework_failure +ln $tmp_in $tmp_in2 || framework_failure +ln -s $tmp_in $tmp_sym || framework_failure dd if=$tmp_in of=$tmp_out 2> /dev/null || fail=1 compare $tmp_in $tmp_out || fail=1 |