Skip to content

Commit ee6c5b4

Browse files
committed
[lsan] Remove %pull_from_device from tests
Replaced with %adb_shell cat.
1 parent 7f7fb2e commit ee6c5b4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

compiler-rt/test/lit.common.cfg.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@ def get_macos_aligned_version(macos_vers):
449449
# suppression-files, to device.
450450
config.substitutions.append( ('%device_rundir/', "/data/local/tmp/Output/") )
451451
config.substitutions.append( ('%push_to_device', "%s -s '%s' push " % (adb, env['ANDROID_SERIAL']) ) )
452-
config.substitutions.append( ('%pull_from_device', "%s -s '%s' pull " % (adb, env['ANDROID_SERIAL']) ) )
453452
config.substitutions.append( ('%adb_shell ', "%s -s '%s' shell " % (adb, env['ANDROID_SERIAL']) ) )
454453
config.substitutions.append( ('%device_rm', "%s -s '%s' shell 'rm ' " % (adb, env['ANDROID_SERIAL']) ) )
455454

@@ -478,7 +477,6 @@ def get_macos_aligned_version(macos_vers):
478477
else:
479478
config.substitutions.append( ('%device_rundir/', "") )
480479
config.substitutions.append( ('%push_to_device', "echo ") )
481-
config.substitutions.append( ('%pull_from_device', "echo ") )
482480
config.substitutions.append( ('%adb_shell', "echo ") )
483481

484482
if config.host_os == 'Linux':

compiler-rt/test/lsan/TestCases/Linux/log-path_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
// RUN: FileCheck %s --check-prefix=CHECK-ERROR < %t.out
77

88
// Good log_path.
9-
// RUN: rm -f %t.log.*
9+
// RUN: rm -f %t.log.* %t.log
1010
// RUN: %adb_shell 'rm -f %t.log.*'
1111
// RUN: %env_lsan_opts="use_stacks=0:log_path='"%device_rundir/%t.log"'" not %run %t > %t.out 2>&1
1212
// adb-pull doesn't support wild cards so we need to rename the log file.
13-
// RUN: %adb_shell 'mv %device_rundir/%t.log.* %device_rundir/%t.log'
14-
// RUN: %pull_from_device %device_rundir/%t.log %t.log.ANDROID
13+
// RUN: cat %device_rundir/%t.log.* >> %t.log
14+
// RUN: %adb_shell 'cat %device_rundir/%t.log.*' >> %t.log
1515
// RUN: FileCheck %s --check-prefix=CHECK-ERROR < %t.log.*
1616

1717
#include <stdio.h>

0 commit comments

Comments
 (0)