Skip to content

Commit e888f38

Browse files
committed
Make regtest/stat.in system independant.
Fixes #88
1 parent a6d900b commit e888f38

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

test/regtest/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ all:
2828
g++ -std=c++11 -fPIC -shared -o example.so -O2 \
2929
../../examples/plugins/example.cpp -I ../../src/e9tool/
3030
g++ -std=c++11 -pie -fPIC -o regtest regtest.cpp -O2
31+
echo "XXX" > FILE.txt
32+
chmod 0640 FILE.txt
3133

3234
clean:
3335
rm -f *.log *.out *.exe test test.pie test.libc libtest.so inst inst.o \

test/regtest/stat.exp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
mode = 100664
2-
size = 62
1+
mode = 100640
2+
size = 4
33
PASSED

test/regtest/stat.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
./test -M 'addr == 0xa0001d9' -P 'test_stat("stat.in")@patch'
1+
./test -M 'addr == 0xa0001d9' -P 'test_stat("FILE.txt")@patch'

0 commit comments

Comments
 (0)