~ubuntu-branches/ubuntu/wily/google-perftools/wily

« back to all changes in this revision

Viewing changes to src/tests/heap-checker-death_unittest.sh

  • Committer: Bazaar Package Importer
  • Author(s): Daigo Moriwaki
  • Date: 2009-09-19 00:10:06 UTC
  • mto: (3.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090919001006-m997dckgoqs3sru9
Tags: upstream-1.4
ImportĀ upstreamĀ versionĀ 1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
  fi
96
96
  # If we get here, we failed.  Now we just need to report why
97
97
  echo "FAIL"
98
 
  if [ $actual_ec == 255 ]; then  # 255 == SIGTERM due to $ALARM
 
98
  if [ $actual_ec -eq 255 ]; then  # 255 == SIGTERM due to $ALARM
99
99
    echo "Test was taking unexpectedly long time to run and so we aborted it."
100
100
    echo "Try the test case manually or raise the timeout from $timeout"
101
101
    echo "to distinguish test slowness from a real problem."
150
150
# These invocations should fail with very high probability,
151
151
# rather than return 0 or hang (1 == exit(1), 134 == abort(), 139 = SIGSEGV):
152
152
 
153
 
Test 20 1 "Exiting .* because of .* leaks$" "" \
 
153
Test 60 1 "Exiting .* because of .* leaks$" "" \
154
154
  HEAP_CHECKER_TEST_TEST_LEAK=1 HEAP_CHECKER_TEST_NO_THREADS=1 || exit 8
155
 
Test 20 1 "Exiting .* because of .* leaks$" "" \
 
155
Test 60 1 "Exiting .* because of .* leaks$" "" \
156
156
  HEAP_CHECKER_TEST_TEST_LOOP_LEAK=1 HEAP_CHECKER_TEST_NO_THREADS=1 || exit 9
157
157
 
 
158
# Test that we produce a reasonable textual leak report.
 
159
Test 60 1 "DoAllocHidden" "" \
 
160
          HEAP_CHECKER_TEST_TEST_LEAK=1 HEAP_CHECK_TEST_NO_THREADS=1 \
 
161
  || exit 10
 
162
 
158
163
# Test that very early log messages are present and controllable:
159
164
Test 60 1 "Starting tracking the heap$" "" \
160
165
  HEAP_CHECKER_TEST_TEST_LEAK=1 HEAP_CHECKER_TEST_NO_THREADS=1 PERFTOOLS_VERBOSE=1 \
161
 
  || exit 9
 
166
  || exit 11
162
167
Test 60 1 "" "Starting tracking the heap" \
163
168
  HEAP_CHECKER_TEST_TEST_LEAK=1 HEAP_CHECKER_TEST_NO_THREADS=1 PERFTOOLS_VERBOSE=-1 \
164
 
  || exit 10
 
169
  || exit 12
165
170
 
166
171
cd /    # so we're not in TMPDIR when we delete it
167
172
rm -rf $TMPDIR