File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ mod integration {
127
127
BUILD . call_once ( || {
128
128
assert ! ( Command :: new( "cargo" )
129
129
. arg( "build" )
130
+ . arg( "--release" )
130
131
. output( )
131
132
. expect( "failed to build extension" )
132
133
. status
@@ -136,15 +137,19 @@ mod integration {
136
137
137
138
pub fn run_php ( file : & str ) -> bool {
138
139
setup ( ) ;
139
- Command :: new ( "php" )
140
+ let output = Command :: new ( "php" )
140
141
. arg ( format ! (
141
- "-dextension=../target/debug /libtests.{}" ,
142
+ "-dextension=../target/release /libtests.{}" ,
142
143
std:: env:: consts:: DLL_EXTENSION
143
144
) )
144
145
. arg ( format ! ( "src/integration/{}" , file) )
145
- . status ( )
146
- . expect ( "failed to run php file" )
147
- . success ( )
146
+ . output ( )
147
+ . expect ( "failed to run php file" ) ;
148
+ if output. status . success ( ) {
149
+ true
150
+ } else {
151
+ panic ! ( "{}" , String :: from_utf8( output. stdout) . unwrap( ) ) ;
152
+ }
148
153
}
149
154
150
155
mod array;
You can’t perform that action at this time.
0 commit comments