Skip to content

Commit 7c6cf4e

Browse files
committed
---
yaml --- r: 65497 b: refs/heads/master c: 0521d54 h: refs/heads/master i: 65495: f5a4dae v: v3
1 parent fe62aef commit 7c6cf4e

File tree

3 files changed

+23
-16
lines changed

3 files changed

+23
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: fe1dc3280f63fe4cec441837ae20020cbe26dc61
2+
refs/heads/master: 0521d54ca1e194ba8564f4a000c50b7f708022ba
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/compiletest/runtest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
768768

769769
runargs.push(~"shell");
770770
runargs.push(fmt!("%s/adb_run_wrapper.sh", config.adb_test_dir));
771+
runargs.push(fmt!("%s", config.adb_test_dir));
771772
runargs.push(fmt!("%s", prog_short));
772773

773774
for args.args.each |tv| {
@@ -795,7 +796,7 @@ fn _arm_exec_compiled_test(config: &config, props: &TestProps,
795796
_ => 0,
796797
}
797798
}
798-
maxtry = maxtry - 1;
799+
// maxtry = maxtry - 1;
799800
// unsafe { libc::sleep(1); }
800801
// }
801802

trunk/src/etc/adb_run_wrapper.sh

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1-
2-
PATH=$(echo $0 | sed 's#/[^/]*$##')
3-
RUN=$1
4-
5-
if [ ! -z "$RUN" ]
1+
#
2+
# usage : adb_run_wrapper [test dir - where test executables exist] [test executable]
3+
#
4+
PATH=$1
5+
if [ -d "$PATH" ]
66
then
77
shift
8-
while [ -f $PATH/lock ]
9-
do
10-
sleep 1
11-
done
12-
touch $PATH/lock
13-
LD_LIBRARY_PATH=$PATH $PATH/$RUN $@ 1>$PATH/$RUN.stdout 2>$PATH/$RUN.stderr
14-
echo $? > $PATH/$RUN.exitcode
15-
/system/bin/rm $PATH/lock
16-
fi
8+
RUN=$1
179

10+
if [ ! -z "$RUN" ]
11+
then
12+
shift
13+
while [ -f $PATH/lock ]
14+
do
15+
/system/bin/sleep 1
16+
done
17+
/system/bin/touch $PATH/lock
18+
LD_LIBRARY_PATH=$PATH $PATH/$RUN $@ 1>$PATH/$RUN.stdout 2>$PATH/$RUN.stderr
19+
echo $? > $PATH/$RUN.exitcode
20+
/system/bin/rm $PATH/lock
21+
/system/bin/sync
22+
fi
23+
fi

0 commit comments

Comments
 (0)