Skip to content

Commit 24a5e8e

Browse files
Fix failing test.
1 parent 97cfd67 commit 24a5e8e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/00/t0044a.sh

+7-5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ else #standalone test
4141
fi
4242
CC=${CC:-g++}
4343

44+
touch poly.cd
45+
4446
cat >should-fail.cc <<EOF
4547
#include <ref.h>
4648
#include "classdesc_epilogue.h"
@@ -55,10 +57,10 @@ int main()
5557
}
5658
EOF
5759

58-
g++ -DOP="==" -DTR1 -I$here should-fail.cc &>/dev/null
60+
g++ -DOP="==" -DTR1 -I$here -I. should-fail.cc &>/dev/null
5961
if test $? -eq 0; then fail; fi
6062

61-
g++ -DOP="!=" -DTR1 -I$here should-fail.cc &>/dev/null
63+
g++ -DOP="!=" -DTR1 -I$here -I. should-fail.cc &>/dev/null
6264
if test $? -eq 0; then fail; fi
6365

6466
cat >should-fail.cc <<EOF
@@ -77,10 +79,10 @@ int main()
7779
}
7880
EOF
7981

80-
g++ -DOP="==" -DTR1 -I$here should-fail.cc
82+
g++ -DOP="==" -DTR1 -I$here -I. should-fail.cc
8183
if test $? -eq 0; then fail; fi
8284

83-
g++ -DOP="!=" -DTR1 -I$here should-fail.cc
85+
g++ -DOP="!=" -DTR1 -I$here -I. should-fail.cc
8486
if test $? -eq 0; then fail; fi
8587

8688
cat >should-succeed.cc <<EOF
@@ -109,7 +111,7 @@ int main()
109111
}
110112
EOF
111113

112-
g++ -DTR1 -I$here -o a.out should-succeed.cc
114+
g++ -DTR1 -I$here -I. -o a.out should-succeed.cc
113115
if test $? -ne 0; then fail; fi
114116

115117
./a.out

0 commit comments

Comments
 (0)